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:
As the manual suggests.$ua->requests_redirectable ([]);
In reply to Re: Ignore 3xx redirects
by dorward
in thread Ignore 3xx redirects
by subdian
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |