Merdinus wrote:
>
> Have seen this issue addressed on this board in the past, but can't
> figure out exactly what I need to do.
> 
> I'm using WWW::Mechanize and a webpage seems to be redirecting me but
> Mechanize doesn't seem to follow it.  I've heard to "Add the header
> 'Accept: text/html'" but alas I don't know how to add the header, or
> what that means.
> 
> Any to save my sanity would all kinds of appreciated.

If the redirect is being done with JavaScript then WWW::Mechanize will ignore
it, otherwise any GET, HEAD or POST request will be redirected as normal.

Can you give us more information on which URL it is that is being redirected?
What status code are you getting from the initial GET?

Rob

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to