所以我有以下代码片段
$ch = curl_init();
//Set the URL
curl_setopt($ch, CURLOPT_URL, $jURL);
//Enable curl response
curl_setopt(CURLOPT_RETURNTRANSFER, true);
//Enable POST data
curl_setopt($ch, CURLOPT_POST, true);
//Use the $pData array as the POST data
curl_setopt($ch, CURLOPT_POSTFIELDS, $jData);
$result = curl_exec($ch);
echo 'The body of the response is ' . $result;
curl_close($ch);
Run Code Online (Sandbox Code Playgroud)
我想打开响应主体,但上面的代码打印数字1.有没有办法在这里得到响应?
| 归档时间: |
|
| 查看次数: |
12380 次 |
| 最近记录: |