cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Mailing List Archives

RE: curl_easy_perform() failure on some linux machines

From: Yuichi Kuroda <satellitekani_at_hotmail.com>
Date: Thu, 29 Oct 2009 07:42:34 +0900

Apologies for the multiple confusion (fixed the subject...) Clarification below.
> > The error message I get from this is 'Couldn't connect to host'. Even > > through a simple command line like 'curl 10.0.1.10:1500'would give me a > > connection refused error.> > Right, so those are two different connect errors. Why is that relevant?
For example, when I run the command line, 'curl --trace curllog 10.0.1.10:1500',the console output I get is 'curl: (7) couldn't connect to host'If I take a look at the trace log, this is what it contains:
*** log starts below here ***
== Info: About to connect() to 10.0.1.10 port 1500 (#0)== Info: Trying 10.0.1.10... == Info: Connection refused== Info: couldn't connect to host== Info: Closing connection #0
*** log ends here ***
> > Plus it works on some Linux distros> > On the same network with the same config you mean?
Curl configuration you mean? I link in a static version of libcurl.a so I am assuming so.
> Here are some tools that can help you determine what happens:> > - wireshark> - tcpdump> - strace
Thanks. I'll see if I can track down anything.

> Date: Wed, 28 Oct 2009 22:36:06 +0100
> From: daniel_at_haxx.se
> To: curl-library_at_cool.haxx.se
> Subject: Re: curl_easy_send() failure on some linux machines
>
> On Thu, 29 Oct 2009, Yuichi Kuroda wrote:
>
> Misleading subject. Your code snippet speaks of curl_easy_perform().
>
> > res = curl_easy_perform(curl);
>
> > The error message I get from this is 'Couldn't connect to host'. Even
> > through a simple command line like 'curl 10.0.1.10:1500'would give me a
> > connection refused error.
>
> Right, so those are two different connect errors. Why is that relevant?
>
> > Plus it works on some Linux distros
>
> On the same network with the same config you mean?
>
> > Why is it not working (seemingly) on older Linux distros?
>
> Here are some tools that can help you determine what happens:
>
> - wireshark
> - tcpdump
> - strace
>
> --
>
> / daniel.haxx.se
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-library
> Etiquette: http://curl.haxx.se/mail/etiquette.html
                                               
_________________________________________________________________
Windows Live: Make it easier for your friends to see what you’re up to on Facebook.
http://www.microsoft.com/middleeast/windows/windowslive/see-it-in-action/social-network-basics.aspx?ocid=PID23461::T:WLMTAGL:ON:WL:en-xm:SI_SB_2:092009

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2009-10-28

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET