curl-users
Re: Authentification fails using SOCKS and FTP
Date: Wed, 7 Feb 2007 23:44:55 +0100
Am Montag, 5. Februar 2007 22:41:14 schrieb Daniel Stenberg:
> On Mon, 5 Feb 2007, Michael Hekel wrote:
> > I'm trying to use curl with ftp through a socks5 proxy, but it doesn't
> > work. Something with the authntification fails, as you can see below:
>
> This is a known issue with SOCKS and FTP, and I don't think this is fixed
> even with the most recent socks5 fixes (we did them just a day or two ago,
> available only in daily snapshots - post 7.16.1).
>
> We'll appreciate your help on getting this fixed.
To confirm that, I downloaded today the daily snapshot (February 7, 2007) and
built it on my system:
Here is the result:
./curl ftp://ftp.suse.com -u ftp:ftp -v --socks5 localhost:9050
* About to connect() to proxy localhost port 9050 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 9050 (#0)
< 220 "Welcome to the SUSE ftp server: Please login as user 'ftp'"
> USER ftp
< 331 Please send your email address as a password.
> PASS ftp
< 230 Login successful. Have a lot of fun.
> PWD
< 257 "/"
* Entry path is '/'
> EPSV
* Connect data stream passively
< 500 Illegal EPSV command.
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (195,135,221,132,124,133)
* Trying 127.0.0.1... connected
* Connecting to 195.135.221.132 (127.0.0.1) port 9050
> TYPE A
< 200 You don't want an ASCII transfer.
> LIST
< 425 Failed to establish connection.
* RETR response: 425
* Connection #0 to host ftp.suse.com left intact
curl: (19) RETR response: 425
> QUIT
< 221 Goodbye.
* Closing connection #0
Regards,
Michael
Received on 2007-02-07