getting HTTP response body using curl

So I have the following code snippet

[php]//And let cURL work it’s magic.
$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);
[/php]

I would like to get the response body printed out, however my code above prints the number 1?

Sponsor our Newsletter | Privacy Policy | Terms of Service