OpenCart City Posted April 22, 2020 Share Posted April 22, 2020 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 More sharing options...
idnovate.com Posted April 22, 2020 Share Posted April 22, 2020 Which is the value for $url variable? Link to comment Share on other sites More sharing options...
OpenCart City Posted April 22, 2020 Author Share Posted April 22, 2020 Hello, The $url and $post_data contains the correct value because URL is working in Postman. Thanks! Link to comment Share on other sites More sharing options...
OpenCart City Posted April 25, 2020 Author Share Posted April 25, 2020 Can anyone answer this please? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now