CODE‎ > ‎Python‎ > ‎

server訊息


>>> sUrl = 'http://www.vipe.idv.tw'
>>> sock = urllib2.urlopen(sUrl)
>>>sock.headers.values()
['Fri, 29 Apr 2011 12:38:02 GMT', '225', 'text/html', 'close', 'Google Frontend']
Comments