Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: LWP::Simple and redirects

by Popcorn Dave (Abbot)
on Feb 26, 2002 at 16:34 UTC ( #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 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 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.


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

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2023-03-28 12:15 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (67 votes). Check out past polls.