// Returns response data instead of TRUE(1)
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
// Use HTTP POST to send form data
- curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim($fields, "& "));
+ curl_setopt($ch, CURLOPT_POSTFIELDS, rtrim($fields, "& "));
// Uncomment this line if you get no gateway response. ###
- // curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
+ curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
// Execute post and get results
$resp = curl_exec($ch);
curl_close($ch);