hi all,
ive been using curl with a few different 3rd parties, but im trying to get me head around what i should be returning.
im using this curl function
<?php
function request($url, $postdata) {
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $postdata);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($curl);
curl_close($curl);
return $result;
}
$url = "mydomain.com/curl.php?";
$postdata = "id=1";
?>
my question is, what do i have in the curl.php file to get a response to show in the screen?
Regards
Paul