Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: LWP::Simple and redirects

by Popcorn Dave (Abbot)
on Feb 26, 2002 at 16:34 UTC ( [id://147629]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://147629]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2025-06-19 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.