0
任何人都可以讓我知道我在下面的代碼中犯了什麼錯誤。Sagepay cURL數據發佈
我剛剛將交易信息發佈到sagepay作爲sagepay提供的格式。所以我用cURL來發布這些信息。這裏我的疑問出現在第10行。請告知我將使用此聲明進行新的連接創建?
它會啓動無限循環嗎?
<?
1 $curlSession = curl_init();
2 curl_setopt ($curlSession, CURLOPT_URL, $url);
3 curl_setopt ($curlSession, CURLOPT_HEADER, 0);
4 curl_setopt ($curlSession, CURLOPT_POST, 1);
5 curl_setopt ($curlSession, CURLOPT_POSTFIELDS, $data);
6 curl_setopt($curlSession, CURLOPT_RETURNTRANSFER,1);
7 curl_setopt($curlSession, CURLOPT_TIMEOUT,180);
8 curl_setopt($curlSession, CURLOPT_SSL_VERIFYPEER, FALSE);
9 curl_setopt($curlSession, CURLOPT_SSL_VERIFYHOST, 1);
10 curl_setopt($curlSession, CURLOPT_FRESH_CONNECT, 1);
11 $rawresponse = curl_exec($curlSession);
?>
究竟是什麼問題(除了詢問新連接其他)? – 2010-07-16 11:34:12
我收到了請求超時,並且處理速度緩慢以至達到目標網址。這個聲明會做到嗎? – 2010-07-16 12:06:09