Page 1 of 1

Colect cURL response data

Posted: Sun Feb 04, 2007 6:32 am
by ddragas
Hi all

Need help on cURL response

I'm sending some information to some URL, and that URL returns me some number. How can I colect that number and store it in veriable

this is code for sending saome information to URL

Code: Select all

$some_URL = "http://www.some-url.com";

					$ch = curl_init($some_URL);
					curl_setopt($ch, CURLOPT_HEADER, 0);
					curl_exec($ch);
					curl_close($ch);

regards ddragas

Posted: Sun Feb 04, 2007 12:16 pm
by feyd
There's a curl option (curl_setopt()) that allows you to tell curl to return the response.

Posted: Sun Feb 04, 2007 12:40 pm
by ddragas
thank you for reply

regards ddragas