当前位置: 代码迷 >> 高性能WEB开发 >> http协议响应,该怎么处理
  详细解决方案

http协议响应,该怎么处理

热度:292   发布时间:2013-11-13 14:04:18.0
http协议响应
我通过telnet向我自己开的nginx发送了POST请求

POST /slu/index.php HTTP/1.1
Host:localhost
Content-Type:text/xml
Content-Length:2
Connection:close

ab


返回的内容是:
HTTP/1.1 200 OK
Server: nginx/1.0.5
Date: Tue, 01 Nov 2011 08:24:10 GMT
Content-Type: text/plain
Transfer-Encoding: chunked
Connection: close
X-Powered-By: PHP/5.3.6-13ubuntu3.2

5
ab



0


我的nginx的php脚本内容是
<?php

header("Content-Type: text/plain");

$slu = file_get_contents("php://input");
echo $slu;


?>


我想麻烦问下服务器的返回
5
ab



0

ab两端的数字是什么含义?谢谢啦

------解决方案--------------------
chunked编码就是样,数字是表示数据的长度
  相关解决方案