小编use*_*523的帖子

Content-Length 标头不存在

我在 Linux 上安装了 nginx 服务器。当我使用 curl 发送请求时,Content-Length响应中缺少标头。

1.php 文件是:

<?php
   echo "hello";
?>
Run Code Online (Sandbox Code Playgroud)

示例请求是:

curl api.mysite.com/taxi/1.php -i

HTTP/1.1 200 OK
Server: nginx/1.2.1
Date: Wed, 17 Sep 2014 06:16:00 GMT
Content-Type: text/html; charset=utf8
Vary: Accept-Encoding
X-Powered-By: PHP/5.4.4-14+deb7u14
Age: 0
X-Cache: MISS from cache.turonnet.uz
Transfer-Encoding: chunked
Connection: keep-alive
Run Code Online (Sandbox Code Playgroud)

我该如何解决?

php http nginx http-headers

6
推荐指数
1
解决办法
9534
查看次数

标签 统计

http ×1

http-headers ×1

nginx ×1

php ×1