POST /404 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 15
x=1
0
请问如上的数据包,Content-Length:15是怎么算出来的呢?
POST /404 HTTP/1.1
Content-Type: application/x-www-form-urlencoded
Content-Length: 15
x=1
0
请问如上的数据包,Content-Length:15是怎么算出来的呢?
一般来说是post的数据体的大小,按照字节来算
但是实际上有时候服务器也不使用这个字段,所以胡乱报告一个错误的值也没事。