Jump to content

Failed to connect to example.com port 8443: Connection refused


TonyKapa

Recommended Posts

Hello, 

I am using cURL to make a GET request to a web service api in a module I am developing.

In localhost the call returns success but when I use it on the online shop I am working for, it returns False and as an error the above title - "Failed to connect to example.com port 8443: Connection refused"

Here is the code in case it's any usefull.

$ch = curl_init();            
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_exec($ch);
$errmsg  = curl_error( $ch );
curl_close($ch);

I'm guessing it's a permission related error caused by prestashop but I don't know how to fix it.

Thanks in advance for your help!

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...