The URL is what you're requesting. Unless you receive a redirect with
LWP::UserAgent, you must know what you're requesting. Either its the first
page you hit on the site, or you've grabbed the URL from an HREF in a
requested document. To avoid transparent redirects, subclass LWP::UserAgent
and override $ua->redirect_ok so that it returns false.



> -----Original Message-----
> From: Kevin Harwood [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 23, 2001 6:05 PM
> To: Beginners@Perl. Org
> Subject: parsing a session id out of LWP::
>
>
> I'm trying to test web pages and need to retrieve a session ID out of the
> first request I send out.
>
> I use LWP::UserAgent and send a request for a page, somewhere the url
> probably comes back and at the end of that is the session id.
>
> I then need to attach that to the end of all future requests.
> Anyone know how to use these libraries to get the url itself?
> Thanks
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to