cURL / Mailing Lists / curl-library / Single Mail

curl-library

libcurl connect to server issue

From: Ram <ramkumar.h_at_gmail.com>
Date: Tue, 29 Sep 2009 15:03:21 -0400

Hi,
  I am using libcurl in vxWorks environment. When I try to connect to a
valid website to try transfer a file, it doesn't connect to the ip address.

Curl_connecthost
* Trying 66.39.106.2...
* Failed to connect to 66.39.106.2: Unknown error 60
* Unknown error 0
* connect() timed out!
* Closing connection #0
* Timeout was reached

But I am able to do this with the curl tool from my pc.

>>curl http://66.39.106.2/acm/8kulaw.wav >> test.wav -verbose
* About to connect() to 66.39.106.2 port 80 (#0)
* Trying 66.39.106.2... connected
* Connected to 66.39.106.2 (66.39.106.2) port 80 (#0)
> GET /acm/8kulaw.wav HTTP/1.1

I am able to do transfers with the libcurl in my server, but connecting to
any outside web server fails. Is it because of authentication? if so how
does curl tool is able to do it then?

Thanks in advance.

Regards,
Ram

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