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.