当我执行 curl 时,我没有得到我应该得到的 xml 响应。但是当 curl getinfo 时,我得到响应代码 505。
$url='http://test/paynetz/epi/fts?login=160&pass=Test@123&ttype=NBFundTransfer&prodid=NSE&amt=50&txncurr=INR&txnscamt=0&clientcode=TkFWSU4%3d&txnid='.$string
.'&date='.$date
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
echo $auth = curl_exec($curl);
$response = curl_getinfo($curl);
echo "<pre>";
print_r($response);
echo "</pre>";
这就是我得到的
Array
(
[url] => http://test/paynetz/epi/fts?login=160&pass=Test@123&ttype=NBFundTransfer&prodid=NSE&amt=50&txncurr=INR&txnscamt=0&clientcode=TkFWSU4%3d&txnid=56482&date=28/04/2014 22:24:53&custacc=1234567890&udf1=ajeesh&udf2=ajeesh@fethr.com&udf3=9400429941&udf4=arrackaparmabilhouse&ru
[content_type] =>
[http_code] => 505
[header_size] => 126
[request_size] => 333
[filetime] => -1
[ssl_verify_result] => 0
[redirect_count] => 0
[total_time] => 0.451817
[namelookup_time] => 0.000152
[connect_time] => 0.224945
[pretransfer_time] => 0.225027
[size_upload] => 0
[size_download] => 0
[speed_download] => 0
[speed_upload] => 0
[download_content_length] => -1
[upload_content_length] => 0
[starttransfer_time] => 0.451794
[redirect_time] => 0
[certinfo] => Array
(
)
[redirect_url] =>
)
为什么我会收到卷曲响应?