cURL
Haxx ad
libcurl

Shopping cart software, Online file storage, Online photo storage, Hosted shopping cart, Contact management software, Email marketing software, Project management software, Issue tracking software, Online notepad, Web publishing software

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-library Archives

Re: CURL_COULDNT_CONNECT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Wed, 4 Nov 2009 11:01:25 +0100 (CET)

On Wed, 4 Nov 2009, Alex wrote:

> Im using socks5 proxy support in Curl. and 50% time script work well and 50%
> time it shows to me that errors:
>
> <code php>
> echo curl_errno($ch);
> echo curl_error($ch);
> </code php>
>
> Answer:
> 7
> couldn't connect to host
>
> Im trying to modify timeouts but it doesn't help me.

> Linux server 2.6.27.37-170.2.104.fc10.i686 #1 SMP Mon Oct 12 22:01:53 EDT
> 2009 i686
> PHP: 5.2.9
> libcurl: 7.19.6

That would indicate that either your proxy is shaky, the target server is
shaky or that you're seeing a libcurl bug.

Can you repeat this problem with a public socks5 proxy?

(and note that the error code is actually named CURLE_COULDNT_CONNECT, that is
with a CURLE_ prefix)

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

These mail archives are generated by hypermail.

donate! Page updated November 16, 2009.
web site info

File upload with ASP.NET