erste http-post-Antwort der Körper mit curl

So, ich habe den folgenden code-snippet

$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);

Ich würde gerne die Antwort, die Körper ausgedruckt, aber meine obige code druckt die Nummer 1. Gibt es eine Möglichkeit, die Antwort hier?

InformationsquelleAutor aherlambang | 2011-09-11
Schreibe einen Kommentar