0
空体响应我尝试获取与卷曲的HTTP内容,但我只在答复中得到一个空体:卷曲收到的Nginx服务器
[[email protected] ~]# curl -v http://www.existingdomain.com/
* About to connect() to www.existingdomain.com port 80 (#0)
* Trying 95.211.256.257... connected
* Connected to www.existingdomain.com (95.211.256.257) port 80 (#0)
> GET/HTTP/1.1
> User-Agent: curl/7.21.0 (x86_64-redhat-linux-gnu) libcurl/7.21.0 NSS/3.12.8.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.4
> Host: www.existingdomain.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Server: nginx/0.8.53
< Date: Sat, 28 May 2011 15:56:23 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
< Connection: keep-alive
< Vary: Accept-Encoding
< X-Powered-By: PHP/5.3.3-0.dotdeb.1
<
* Connection #0 to host www.existingdomain.com left intact
* Closing connection #0
如果我更改URL到另一个域名,如www。 google.com,我收到了内容。
这怎么可能?以及如何获取内容?
服务器不受我控制。我试图设置更多的标题,并找到一个让服务器回复内容的标题!这是“接受语言”之一。没有这个,服务器回复空的回应!谢谢。 – Velcro 2011-05-29 09:58:14