cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLE_COULDNT_CONNECT

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Tue, 17 Jun 2008 22:40:09 +0200 (CEST)

On Tue, 17 Jun 2008, Deepesh Damodaran wrote:

> Any idea potential cause for getting the error "Problem: FTP: Could not
> connect". I checked the code, corresponding curl error message is
> CURLE_COULDNT_CONNECT.

Using -v to get verbose output is often enough to show exactly what happened
and why.

> Any idea of different reasons why FTP fails with this error message?

This is _usually_ a sign of the client (curl) going through a
firewall/net/thing that doesn't "follow FTP sessions" and thus refuses the ftp
client to do the second connect when using passive mode.

-- 
  / daniel.haxx.se
Received on 2008-06-17