http://qs1969.pair.com?node_id=147629


in reply to LWP::Simple and redirects

The web site I was running in to problems with was http://www.courier.co.uk. LWP::Simple does grab the page's code for me as I'm using get(<www addy>) and it does have <meta http-equiv="Refresh" in the source. I will look in to LWP::UserAgent and see if that will work more efficiently. Thanks to all!

Replies are listed 'Best First'.
Re: Re: LWP::Simple and redirects
by shotgunefx (Parson) on Feb 26, 2002 at 20:44 UTC
    It does have a redirect.
    document.location.href = "/index.jsp"; 
    
    I would normally suggest just changing the url to http://www.courier.co.uk/index.jsp but when I do this, it works but there is no content. Maybe it's agent sensitive, try using UserAgent instead and set the UserAgent string to match IE.

    -Lee

    "To be civilized is to deny one's nature."