Is there a generic way I can differentiate between good and bad 302 response to
HTTPSend.Method('GET'...) requests?
I'm trying to run through a database automatically and identify all the duff
URLs but the first response is actually a good website whilst the second one
isn't.
302 Found
HTTP/1.1 302 Found
Connection: close
Date: Tue, 20 Jul 2010 12:31:08 GMT
Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET
X-AspNet-Version: 2.0.50727
X-Powered-By: UrlRewriter.NET 1.7.0
Location: /pages/default.aspx
Set-Cookie:
.ASPXANONYMOUS=8CCaRJleywEkAAAAZGY3ZGVlODctNWMxYy00OGMxLWFlNDMtY2M5YjZjNWVlNWZmqKdO1iS0TmeNlfE0ejAILHNC9lY1;
expires=Mon, 27-Sep-2010 23:11:08 GMT; path=/; HttpOnly
Cache-Control: private
Content-Type: text/html; charset=utf-8
Content-Length: 136
302 Found
HTTP/1.0 302 Found
Location: http://guide.opendns.com/?url=www.bordercircuits.co.uk
Content-type: text/html
Content-Length: 0
Connection: close
Date: Tue, 20 Jul 2010 12:29:10 GMT
Server: OpenDNS Guide
On my machine with my setup I could just check to see if Location contained
opendns and if so its duff but I need to have it working on any PC
Roy Lambert
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public