Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Ignore 3xx redirects

by dorward (Curate)
on Jul 06, 2006 at 15:32 UTC ( [id://559602]=note: print w/replies, xml ) Need Help??


in reply to Ignore 3xx redirects

Somewhere there is some code that is causing the script to follow the redirect. Turn it off.

(Its rather hard to be more specific then that without knowing what code you are using.)

If, for instance, you were using LWP::UserAgent, then we might suggest you:

$ua->requests_redirectable ([]);
As the manual suggests.

Replies are listed 'Best First'.
Re^2: Ignore 3xx redirects
by subdian (Initiate) on Jul 06, 2006 at 15:50 UTC
    Yes apologies for not being more specific - (long code, not sure which bit doing what, and didn't want to post a heap of irrelevant stuff)

    Anyway without being 'more specific' you were able to hit the nail on the head

    $ua->requests_redirectable ([]);
    was EXACTLY what I needed.
    Many thanks dorward.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2024-04-19 04:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found