Re: 302 error

Roy T. Fielding (fielding@liege.ICS.UCI.EDU)
Fri, 17 Jan 1997 16:10:11 -0800


> I'm using libwww_perl-0.40 to implement a Web client.  On URLs which
> redirect to another URL, the 'request' sub returns a '302' server
> error,  and no content.  I know that most clients ignore the 302 and
> redirect to the new URL.  How do I do this?  I don't know how to get the
> new URL, or how to make 'request' ignore the 302 error.

Hmmm, if you are just starting a project, you should be using the newer
libwww-perl-5.xx modules and Perl5.  The perl4 stuff is only for legacy
systems.

In any case, the new URL after a redirection response is in the
value of the "Location" header field in that response.

....Roy