标签:
1. HTTP协议中,报文头部 Content-Length 指的是 \r\n空行之后内容的长度。比如下面的报文:
POST /submitdata/service.asmx/g_Submit HTTP/1.1 Host: cf.51welink.com Content-Type: application/x-www-form-urlencoded Content-Length: length sname=string&spwd=string&scorpid=string&sprdid=string&sdst=string&smsg=string
Content-Length 的长度是 strlen("sname=string&spwd=string&scorpid=string&sprdid=string&sdst=string&smsg=string") 的返回值。
标签:
原文地址:http://www.cnblogs.com/fengyubo/p/5018674.html