You want LWP to break spec just to conform to dodgy browsers?

Why not follow the spec but have a flag for the other behaviour. 

The CGI module did this when they changed from "&" to ";" to seperae arguments in GET 
strings.

Yours

Faye Gibbins
Technical Architecture Team

"And his attitude towards his councils and towards each one of his advisers should be 
such that they will recognize that the more freely they speak out the more acceptable 
they will be... who does not is ruined by flatterers" -- Machiavelli


> -----Original Message-----
> From: Sean M. Burke [mailto:[EMAIL PROTECTED]
> Sent: 13 June 2003 15:32
> To: Alan Olegario; (William) Wenjie Wang; [EMAIL PROTECTED]
> Cc: Gisle Aas
> Subject: RE: Need help...
> 
> 
> At 09:56 AM 2003-06-13 -0400, Alan Olegario wrote:
> >I've tried using the same type script against an http site, 
> and still got 
> >the following response:
> >
> >HTTP/1.1 405 Method Not Allowed
> 
> I bet that what's happening is this:
> Your POST gets a redirection response.  The HTTP spec says 
> this should 
> result in another POST, but, alas, "When automatically 
> redirecting a POST 
> request after receiving a 301 status code, some existing 
> HTTP/1.0 user 
> agents will erroneously change it into a GET request."  So 
> "many" (probably 
> all) browsers do something else -- they do a GET in this 
> circumstance, and 
> that's what the programmers of the CGI you're posting to are 
> assuming will 
> happen.  But since LWP does a POST instead, you get that error.
> 
> Gisle, haven't people filed patches for making LWP act like 
> every other 
> user-agent, instead of following the spec?  If you don't have 
> a patch for 
> it, I could probably whip one up for you without too much bother.
> 
> --
> Sean M. Burke    http://search.cpan.org/~sburke/
> 
> 
> 

-- 

------------------------------------------------------------------------------
Intelligent Finance is a division of Halifax plc, Registered in England No. 2367076, 
Registered Office: Trinity Road, Halifax, West Yorkshire HX1 2RG..

==============================================================================

Reply via email to