HTTP Request in Python using urllib Module

import urllib

soc=urllib.urlopen("http://google.co.in")
print("Status Code: "+str(soc.code))
result=soc.info()

print(result)
print(result.keys())
print("Server:"+result['server'])
print("Data Returned: "+soc.read())

Comments

Popular posts from this blog

JTAG PIN Identification

CWE vs CVE