Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Re: Re: Redirect after POST behavior in LWP::UserAgent differs from Netscape's?

by gregorovius (Friar)
on Mar 17, 2001 at 07:11 UTC ( #65107=note: print w/ replies, xml ) Need Help??


in reply to Re: Re: Redirect after POST behavior in LWP::UserAgent differs from Netscape's?
in thread Redirect after POST behavior in LWP::UserAgent differs from Netscape's?

Thanks for your help!

Also, please don't confuse redirect AFTER post with redirecting THE post

I'm not confusing it, that's just the issue with the behavior of LWP::UserAgent. If you override its 'redirect_ok' method to return True on POST requests then it will post all your submitted data to the site the server requests redirection to. If seen this way then Netscape's behavior can be regarded as safer than LWP::UserAgent's, since it won't post all your data to the site down the line (it should be noted that UserAgent's default is to NOT follow POST redirects, though, but its documentation says nothing about the way it follows POST redirects and its being non-standard).

We could conclude, then, that both LWP::UserAgent and Netscape are non-compliant, and that Netscape's behavior is safer.


Comment on Re: Re: Re: Redirect after POST behavior in LWP::UserAgent differs from Netscape's?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://65107]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-09-20 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (160 votes), past polls