cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: CURLE_COULDNT_CONNECT

From: Deepesh Damodaran <deepesh_at_kerala.cc>
Date: Tue, 17 Jun 2008 16:49:08 -0700

Thanks Daniel for your response !
However manual FTP works on this system. How is ftp through CURL different from manual FTP?

Right FTP through CURL is implemented through one of our application.
Is there a way to test CURL FTP from our system to understand why FTP fails.

Regards,
Deepesh

--- daniel_at_haxx.se wrote:

From: Daniel Stenberg <daniel_at_haxx.se>
To: the curl tool <curl-users_at_cool.haxx.se>
Subject: Re: CURLE_COULDNT_CONNECT
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
_____________________________________________________________
Get Your Private & Free 6 Meg Email Space at http://www.Kerala.cc 4 ever.
Received on 2008-06-18