I am running XAMPP (Apache, MySQL and PHP) on my Windows Vista computer. I have
curl installed on my machine. When I try to
localhost in the command prompt, I get the following:
curl -v -i localhost * timeout on name lookup is not supported * About to connect() to localhost port 80 (#0) * Trying 127.0.0.1... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- 0:02:00 --:--:-- 0 * Connection refused * couldn't connect to host * Closing connection #0 curl: (7) couldn't connect to host
However, if I
curl a live site, such as Google, it fetches appropriately. This issue only appears when using the command line. I am able to
curl localhost from my local server via PHP script without any issue.
Is this a result of some sort of Apache config? Or is there some sort of network or Internet settings that need to be configured/adjusted in Windows to get it to work right?