Advertisement
Guest User

Untitled

a guest
Apr 10th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. # -*- coding: utf-8 -*-
  2. import httplib
  3. import os
  4. h = httplib.HTTPConnection('alt1040.com',timeout=80)
  5. i = 0
  6. while 1:
  7.     i += 1
  8.     h.request("GET","/")
  9.     r = h.getresponse()
  10.     print "Petición %d, respuesta: %s" % (i,str(r.status))
  11.     h.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement