Hi
When I use curl to make a post to an external website is there anyway to control the data it returns? Say I have a external website that returns some info after I post to it with curl... I would like to control the information it returns back. Does curl have a variable or any way of controling the output from a post so I can use it as like a string?
Here is an example of the code I am using:
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"http://www.somewebsite.com/script.php");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,
"var1=something&var2=etc");
curl_exec ($ch);
curl_close ($ch);
Is there something I can do to control the output of that? Like put the output into a variable somehow?