conn = httplib.HTTPConnection(_urld.netloc,80,True,3)
conn.connect()
conn.putrequest("POST", url)
conn.putheader("Content-Length", str(len(data)))
conn.putheader("Content-Type", "application/x-www-form-urlencoded")
conn.putheader("Connection", "close")
conn.endheaders()
f = conn.getresponse()
self.httpBody = f.read()
---------------------------------
打印出来的self.httpBody
其中的一段数据为:
<form href="http://CXXXXXXXX.com/handleLogin?id=Ad9AzuznGGe50nrR-KqRrEvJ&data=" method="post">
……
但实际的数据应该是:
<form href="http://CXXXXXXXX.com/handleLogin?id=Ad9AzuznGGe50nrR-KqRrEvJ&data=A58157390E5FAFD5FEF53BDF5E2A6B5B" method="post">
……
少了一截数据,有人知道怎么回事么?
求指导!!!