http的响应有 Connection: close 字段,没有Content-Length:字段,我如何知道后续数据的大小?如;第一个包为
HTTP/1.0 200 OK
Date: Fri, 24 Aug 2007 16:22:50 GMT
Server: Boa/0.93.15
Connection: close
Content-Type: text/html第二个为:
{"challenge":"991236299"}我怎么知道第二个包有多长?
HTTP/1.0 200 OK
Date: Fri, 24 Aug 2007 16:22:50 GMT
Server: Boa/0.93.15
Connection: close
Content-Type: text/html第二个为:
{"challenge":"991236299"}我怎么知道第二个包有多长?
判断 是否接收到了 </HTML>