Thanks Jenda -

You pointed me to my error (I had a messed-up
url).

Aloha => Beau.

-----Original Message-----
From: Jenda Krynicky [mailto:Jenda@;Krynicky.cz]
Sent: Wednesday, November 06, 2002 11:16 AM
To: Beginners Perl
Subject: Re: Getting a http redirected page


From: "Beau E. Cox" <[EMAIL PROTECTED]>
> I'm using LWP::UserAgent to get web content:
> 
>  my $request = new HTTP::Request ('GET' => $url);
>  my $response = $agent->request ($request);
> 
> Now I get a response of 500 (page redirected).
> 
> I can't seem to remember how to get the new location...
> something like: get raw headers and the new url
> is somewhere...?

500 is a "Internal Server Error". Redirects are 
        301 Moved Permanently
        302 Moved Temporarily
        303 See Other

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
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