cURL / Mailing Lists / curl-library / Single Mail

curl-library

curl binary OK libcurl NOK

From: Robert Thorhuus <robert.thorhuus_at_ericsson.com>
Date: Fri, 17 Oct 2008 00:12:34 +0200

Hello!

This is my first time using libcurl. I downloaded the source code for
7.19.0.

I start with just telling the real problem. Using the downloaded curl
binary I can do:
curl -x my.proxy.se:8080 www.google.se

This works.

Now I do
curl = curl_easy_init();
  if(curl)
  {
    curl_easy_setopt(curl, CURLOPT_PROXY, "my.proxy.se:8080");
    curl_easy_setopt(curl, CURLOPT_URL, "www.google.se");
    res = curl_easy_perform(curl);
    curl_easy_cleanup(curl);
  }

This results in a error code 7 = CURLE_COULDNT_CONNECT (7)

What can be the difference?

I installed curl with this configure line:
./configure --without-nss --without-gnutls --without-zlib --without-ssl
--disable-crypto-auth --disable-tftp --disable-telnet --disable-dict
--disable-ldap --disable-ftp

BR
Robert
Received on 2008-10-17