ajithkp560

Website Response Checker

May 11th, 2012
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. import httplib
  2. print "Coded by Ajith KP"
  3. print "This code can capture the response from website"
  4. print "Eg. Website for Check: www.facebook.com"
  5. print "Eg. Page for check: index.php"
  6. site=raw_input("\t\nWebsite for Check:")
  7. pages=raw_input("\t\nPage for Check:")
  8. pages = "/" + pages
  9. conn = httplib.HTTPConnection(site)
  10. conn.request("GET", pages)
  11. capture = conn.getresponse()
  12. print capture.status, capture.reason
Advertisement
Add Comment
Please, Sign In to add comment