[nycphp-talk] Posting data to PayPal from a script using sockets
Jose Villegas
jv_nyphp at duikerbok.com
Thu Jun 10 14:38:23 EDT 2004
Curl is very straightforward. Just try something like this out:
ob_start();
$ch = curl_init('http://www.target-site.com/');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'name=example');
curl_exec($ch);
curl_close($ch);
$response = ob_get_contents();
ob_end_clean();
Then you can process the result in $response as you like.
Jose
On Jun 10, 2004, at 1:01 PM, William E. Fisher wrote:
> ...
> Jose, I have been trying to avoid using curl (which I have never used
> and
> don't really understand), but I'll give it a try if it comes to that.
> ...
More information about the talk
mailing list