cURL / Mailing Lists / curl-library / Single Mail


Re: curl_easy_perform() failed: Couldn't connect to server

From: Anil J <>
Date: Fri, 15 Mar 2013 00:07:44 -0400


Just to test a new scenario, I changed the URL to a HTTP web server running
on the same host, but still same error persist. I can fetch the web server
from the firefox browser, but not from the curl program.

Looks like something obvious is missing. Can somebody help?


On Thu, Mar 14, 2013 at 6:29 PM, Anil J <> wrote:

> Hi,
> This is my first post on this list, and I am learning the Curl APIs.
> I am trying to run the example code (simple.c), where it tries to read
> from a website. However, it fails to open with the below error.
> curl_easy_perform() failed: Couldn't connect to server
> Then I tried to do a wget on the same web site - wget,
> but it also failed with following reason.
> --2013-03-14 18:23:58--
> Resolving localhost (localhost)...
> Connecting to localhost (localhost)||:8080... failed: Connection
> refused.
> Question:
> 1. What is the reason of 'simple.c' program failing.
> 2. Is there any connection between the two results above? How do I make
> this 'simple.c' program work?
> /anil.

List admin:
Received on 2013-03-15