headers)
response = conn.getresponse()
print response.status, response.reason
conn.close()
It looks like your indenting 2 spaces. I believe the recommendation is 4
spaces. You might read the style guide.
http://www.python.org/doc/essays/styleguide.html
Out of curiosity, what editor
Hi,
I am executing following lines of code:
def WEP40_KEY(n):
params = urllib.urlencode({})
headers = {"Connection": "Keep-Alive","Authorization": ""}
conn = httplib.HTTPConnection(HOST)
conn.request("GET", "/w_sec.htm HTTP/1.1", params, headers)
response = conn.getresponse()
print res