amy_888 发表于 2017-5-7 11:40:03

python httplib模块的http客户端

  httplib模块写的http客户端:

import httplib   

conn = httplib.HTTPConnection('10.15.2.104', 80)
conn.request('GET', r'http://10.15.2.104/index.html')
r = conn.getresponse()
while 1:
data = r.read(1024)
if len(data)<1024:
break
 
页: [1]
查看完整版本: python httplib模块的http客户端