Gossamer Forum
Home : Products : Links 2.0 : Customization :

verifying + 302s

Quote Reply
verifying + 302s
i've eventually got nph-verify working via crontabs BUT:

"Good Links: 20
Bad Links : 192"


"Request Failed (302). Message: Found, but data resides under different URL (add a /). "

most of them are affiliate links

is there any way of tweaking it so that the script is a little more sensitive and can tell the difference between a url which simply forwards to another page and a duff link

(P.S. i'm sure i've seen some sort of solution for this but searched and searched and can't find it)
Quote Reply
Re: [bs7] verifying + 302s In reply to
In nph-verify.cgi, just try changing this;

Code:
# Try to init the Parallel User Checker.
my ($checker, $slow, %ok_status, %fail_status);
%ok_status = (
200, "OK 200",
201, "CREATED 201",
202, "Accepted 202",
203, "Partial Information 203",
204, "No Response 204",
);

%fail_status = (
-1, "Could not lookup server",
-2, "Could not open socket",
-3, "Could not bind socket",
-4, "Could not connect",
301, "Found, but moved",
302, "Found, but data resides under different URL (add a /)",
303, "Method",
304, "Not Modified",
400, "Bad request",
401, "Unauthorized",
402, "PaymentRequired",
403, "Forbidden",
404, "File Not found",
500, "Internal Error",
501, "Not implemented",
502, "Service temporarily overloaded",
503, "Gateway timeout ",
600, "Bad request",
601, "Not implemented",
602, "Connection failed (host not found?)",
603, "Timed out",
);

...to;


Code:
# Try to init the Parallel User Checker.
my ($checker, $slow, %ok_status, %fail_status);
%ok_status = (
200, "OK 200",
201, "CREATED 201",
202, "Accepted 202",
203, "Partial Information 203",
204, "No Response 204",
302, "Found, but data resides under different URL (add a /)",
);

%fail_status = (
-1, "Could not lookup server",
-2, "Could not open socket",
-3, "Could not bind socket",
-4, "Could not connect",
301, "Found, but moved",
303, "Method",
304, "Not Modified",
400, "Bad request",
401, "Unauthorized",
402, "PaymentRequired",
403, "Forbidden",
404, "File Not found",
500, "Internal Error",
501, "Not implemented",
502, "Service temporarily overloaded",
503, "Gateway timeout ",
600, "Bad request",
601, "Not implemented",
602, "Connection failed (host not found?)",
603, "Timed out",
);

Untested, but there is no reason why that should work :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] verifying + 302s In reply to
thanks: perfect:

"Good Links: 210
Bad Links : 2"