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