You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Perrin Harkins <pe...@elem.com> on 2004/05/05 20:10:01 UTC

Re: PerlTransHandler and 302 'Object Moved' response from web server

On Wed, 2004-05-05 at 06:12, mathieu.millet@ratp.fr wrote:
> On some pages, the website sends a 302 'Object Moved' response and instead
> of returning the 302 response to the web browser, Apache/my handler tries to
> GET the new Location by itself, without setting the website's cookie. So,
> the website losts its session and the user is sent back to the homepage.

It sounds like you know what you need to do: send the cookie on to the
other site.  Where are you getting stuck?  Is it just that you don't
know how to stop LWP from handling redirects automatically?  Check the
LWP::UserAgent man page for the simple_request() method.  You can also
give it cookies to send on every request.

- Perrin




-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html