2012-06-13 66 views
11

我在使用OSX上的curl訪問某個URL時遇到問題。對於其他網址我收到迴應,對於這個特定的UWL,我可以從其他的ubuntu機器收到迴應。捲曲錯誤 - 從服務器(ssl)的空回覆

我被困住了,不知道哪個組件壞了,除了升級整個系統和rould之外,沒有任何想法,真的很感謝任何阻止我這麼做的建議。

輸出捲曲:

$ curl -v https://subdomain.example.com/pushdispatcher/dispatcher.asp 
* About to connect() to subdomain.example.com port 443 (#0) 
* Trying 213.229.251.147... connected 
* Connected to subdomain.example.com (213.229.251.147) port 443 (#0) 
* successfully set certificate verify locations: 
* CAfile: /Users/bmihelac/.cert/cacert.pem 
    CApath: none 
    * SSLv2, Client hello (1): 
    * SSLv3, TLS handshake, Server hello (2): 
    * SSLv3, TLS handshake, CERT (11): 
    * SSLv3, TLS handshake, Server finished (14): 
    * SSLv3, TLS handshake, Client key exchange (16): 
    * SSLv3, TLS change cipher, Client hello (1): 
    * SSLv3, TLS handshake, Finished (20): 
    * SSLv3, TLS change cipher, Client hello (1): 
    * SSLv3, TLS handshake, Finished (20): 
    * SSL connection using RC4-MD5 
    * Server certificate: 
    *  subject: /C=SI/ST=Ljubljana/L=Ljubljana/O=Example d.d./OU=Example/CN=subdomain.example.com 
    *  start date: 2011-07-01 00:00:00 GMT 
    *  expire date: 2012-07-26 23:59:59 GMT 
    *  common name: subdomain.example.com (matched) 
    *  issuer: /C=US/O=Thawte, Inc./CN=Thawte SSL CA 
    * SSL certificate verify ok. 
    > GET /pushdispatcher/dispatcher.asp HTTP/1.1 
    > User-Agent: curl/7.16.4 (i386-apple-darwin9.0) libcurl/7.16.4 OpenSSL/0.9.7l zlib/1.2.3 
    > Host: subdomain.example.com 
    > Accept: */* 
    > 
    * SSLv3, TLS handshake, Hello request (0): 
    * SSL read: error:00000000:lib(0):func(0):reason(0), errno 54 
    * Empty reply from server 
    * Connection #0 to host subdomain.example.com left intact 
    curl: (52) SSL read: error:00000000:lib(0):func(0):reason(0), errno 54 
    * Closing connection #0 
+1

的SSL問題具有超強舊curl和超舊的OpenSSL版本。我建議升級組件,並再次嘗試作爲第一種補救措施。 –

+0

@丹尼爾哈哈,我只是注意到自己......你評論了一個非常古老的問題。當它被張貼時,他們不是那麼古老,lmao。但是你激活了這個問題,現在我發現自己正在回答它。大聲笑。 – stevenvanc

+0

捲曲7.16.4已經在2012年五歲了...... –

回答

0

看來,服務器正在下降你因爲某些原因連接。

  • 嘗試的User-Agent頭添加到請求(機器人檢測?)
  • 嘗試從其他IP連接(你的IP是黑名單?)