Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
XP is just a number
 
PerlMonks  

Re: LWP::Simple and redirects

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

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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 15: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
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.