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]