I'm trying to connect to a webservice using a PHP wrapper (which is using curl under the covers).
On my local linux machine running PHP 5.3 it works perfectly. However, when I move to a remote server (also running PHP 5.3 on Linux) the call the the webservice URL returns:
getaddrinfo(3) failed for http://server.host.com:8080/login
But when I issue a curl request from the command line, it returns the expected URL.
Can anyone shed any light on this issue?
Thanks!
dig example.com
return when run on the remote host?<URL>
in - is it just the hostname, or a URL withhttp://
and/or anything after the hostname like a port number or trailing slash?