Sorry, if this is a basic question (i'm a damned newbie), but my cURL code seems to be giving me problem in windows 10 . I'm using XAMPP v3.2.2. cURL code works fine in windows 7, MAC OS and Linux. But, not in windows 10. I checked with microsoft too, but they don't have any solutions. Here is the code I'm using.
- Code: Select all
curl_setopt_array($request, array(
CURLOPT_URL => 'https://www.sandbox.paypal.com/cgi-bin/webscr',
CURLOPT_POST => TRUE,
CURLOPT_POSTFIELDS => http_build_query(
array(
'cmd' => '_notify-synch',
'tx' => $tx_token,
'at' => $auth_token,
)),
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_HEADER => FALSE,
));
// Execute request and get response and status code
$res = curl_exec($request);
$status = curl_getinfo($request, CURLINFO_HTTP_CODE);
// Close connection
curl_close($request);
I've checked similar posts on the forum, but none seem to give me the solution that works. Could you please help?
Thanks in advance for your help,
Dr_Sony