Jump to content

CURL Not Working


Recommended Posts

Hello,

Trying to use CURL in PS 1.7 but getting the error 

Port number ended with ':'

Below is the CURL code:

$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => $url,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "POST",
  CURLOPT_SSL_VERIFYHOST => false,
  CURLOPT_SSL_VERIFYPEER => false,
  CURLOPT_POSTFIELDS => $post_data,
));

$response = json_decode(curl_exec($curl), 1);

$err = curl_error($curl);

curl_close($curl);

Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...