Redirecionamento não funciona pela primeira vez

0

Existem saídas do comando curl.

Às vezes, meu site não redireciona corretamente, mostrando a página de erro:

no data received from the server.

Existe alguma maneira de remover esse erro?

C:\Users\sumit>curl -kvI trip-smart.com
* Adding handle: conn: 0x2147e80
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x2147e80) send_pipe: 1, recv_pipe: 0
* About to connect() to trip-smart.com port 80 (#0)
*   Trying 184.168.221.30...
* Connected to trip-smart.com (184.168.221.30) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: trip-smart.com
> Accept: */*
>
* Empty reply from server
* Connection #0 to host trip-smart.com left intact
curl: (52) Empty reply from server
C:\Users\sumit>curl -kvI trip-smart.com
* Adding handle: conn: 0x1dc7e80
* Adding handle: conn: 0x1dc7e80
* Adding handle: send: 0
* Adding handle: recv: 0
* Curl_addHandleToPipeline: length: 1
* - Conn 0 (0x1dc7e80) send_pipe: 1, recv_pipe: 0
* About to connect() to trip-smart.com port 80 (#0)
*   Trying 184.168.221.30...
* Connected to trip-smart.com (184.168.221.30) port 80 (#0)
> HEAD / HTTP/1.1
> User-Agent: curl/7.30.0
> Host: trip-smart.com
> Accept: */*
>
< HTTP/1.1 302 Found
HTTP/1.1 302 Found
< Cache-Control: max-age=900
Cache-Control: max-age=900
< Content-Type: text/html; charset=utf-8
Content-Type: text/html; charset=utf-8
< Location: http://www.trip-smart.com
Location: http://www.trip-smart.com
* Server Microsoft-IIS/7.5 is not blacklisted
< Server: Microsoft-IIS/7.5
Server: Microsoft-IIS/7.5
< X-AspNet-Version: 4.0.30319
X-AspNet-Version: 4.0.30319
< X-Powered-By: ASP.NET
X-Powered-By: ASP.NET
< Date: Thu, 08 Oct 2015 09:40:35 GMT
Date: Thu, 08 Oct 2015 09:40:35 GMT
< Content-Length: 142
Content-Length: 142
< Age: 47
Age: 47
< Connection: keep-alive
Connection: keep-alive

<
* Connection #0 to host trip-smart.com left intact
    
por murarisumit 09.10.2015 / 06:00

0 respostas