Page 1 of 1

Error: Connection failed with API.php

Posted: Tue Jan 28, 2014 6:29 pm
by barhoum
Hi I have a problem with API.php file.. the return message is : Error: Connection failed!!
the api password is correct !!!
Enabble ap : yes ,in the system
help me plzzz , thnx a lot

Re: Error: Connection failed with API.php

Posted: Tue Jan 28, 2014 6:58 pm
by Kent Briggs
Is your php script on a shared hosting site? If so, most likely your host has configured their firewall to block outgoing connections to certain ports (i.e., everything except port 80).

Re: Error: Connection failed with API.php

Posted: Thu Jan 30, 2014 4:38 am
by barhoum
thx for the reply
the form login.html work properly !!! so no problem with the port !!
What can I do?

Re: Error: Connection failed with API.php

Posted: Thu Jan 30, 2014 10:21 am
by Kent Briggs
barhoum wrote: the form login.html work properly !!! so no problem with the port !!
What can I do?
login.htm does not use php. Contact your host provider where the php is located and ask them to open outbound port 8087 (or whatever file port you are using) in their php/curl configuration. Make it clear that you are trying to connect to an external server and are being blocked by their outbound firewall. Otherwise, change your file port to 80 or 443 which are probably not being blocked.

Re: Error: Connection failed with API.php

Posted: Thu Jan 30, 2014 4:13 pm
by barhoum
Thank youuuu :)