Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment