About Me

Saturday, 19 May 2012

Website Response Checker

import httplib
print "Coded by Ajith KP"
print "This code can capture the response from website"
print "Eg. Website for Check: www.facebook.com"
print "Eg. Page for check: index.php"
site=raw_input("\t\nWebsite for Check:")
pages=raw_input("\t\nPage for Check:")
pages = "/" + pages
conn = httplib.HTTPConnection(site)
conn.request("GET", pages)
capture = conn.getresponse()
print capture.status, capture.reason

I dont want my readers to become lazy since its a small program write the code on your own :P


Post a Comment