麻煩昨日就表現出來了 - 從捲曲得到以下答案(由curl_exec調用PHP腳本):捲曲錯誤35,可能的原因是什麼?
$<errno>35</errno>
$<error>Unknown SSL protocol error in connection to w3s.webmoney.ru:443 </error>
該錯誤只發生有時,有事一個35錯誤無效約4-5份有效答卷。在昨天之前,應用程序在很長時間內正確處理這些請求。
希望有人會給我一個關於該錯誤可能原因的暗示。
P.S.我們最近受到網絡連接問題的困擾,它能否以某種方式與這個錯誤聯繫起來?
UPD: 設置詳細輸出到發虛捲曲寫下面的日誌:
* About to connect() to w3s.webmoney.ru port 443 (#0)
* Trying 82.198.171.158... * connected
* Connected to w3s.webmoney.ru (82.198.171.158) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: ${path}/WebMoneyCA.crt
CApath: /etc/ssl/certs
* SSL connection using RC4-MD5
* Server certificate:
* subject: C=RU; O=WebMoney Transfer; OU=WebMoney Web Service; CN=w3s.webmoney.ru
* start date: 2010-06-07 10:03:43 GMT
* expire date: 2012-06-07 10:13:43 GMT
* common name: w3s.webmoney.ru (matched)
* issuer: OU=WM Transfer Certification Services; O=WM Transfer Ltd; CN=WebMoney Transfer Root CA
* SSL certificate verify ok.
> POST /asp/XMLPurses.asp HTTP/1.1
Host: w3s.webmoney.ru
Accept: */*
Content-Length: 281
Content-Type: application/x-www-form-urlencoded
< HTTP/1.1 200 OK
< Date: Fri, 10 Dec 2010 13:00:04 GMT
< Server: Microsoft-IIS/6.0
< X-Powered-By: ASP.NET
< Content-Length: 4423
< Content-Type: text/xml; Charset=windows-1251
< Expires: Fri, 10 Dec 2010 13:00:04 GMT
< Set-Cookie: ASPSESSIONIDQADQDTAQ=FJMNECHBENFFAADHEHPFOKAE; path=/
< Cache-control: private
<
* Connection #0 to host w3s.webmoney.ru left intact
* Closing connection #0
* About to connect() to w3s.webmoney.ru port 443 (#0)
* Trying 212.158.173.158... * connected
* Connected to w3s.webmoney.ru (212.158.173.158) port 443 (#0)
* successfully set certificate verify locations:
* CAfile: ${path}/WebMoneyCA.crt
CApath: /etc/ssl/certs
* Unknown SSL protocol error in connection to w3s.webmoney.ru:443
* Closing connection #0
UPD: 麻煩的是沒有站在我們這一邊。該問題隱藏在w3s.webmoney.ru 212.158.173.158服務器中的某處。如果信息可用,我會添加更多關於錯誤的細節。
嘗試將CURLOPT_VERBOSE設置爲true並將日誌添加到此問題。錯誤35意味着在SSL/TLS握手過程中出現了問題,並且可能是由很多事情造成的。 – 2010-12-09 17:03:58