cURL / Mailing Lists / curl-users / Single Mail

curl-users

Authentification fails using SOCKS and FTP

From: Michael Hekel <michael.hekel_at_uni-ulm.de>
Date: Mon, 5 Feb 2007 19:03:25 +0100

Hello,

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:

curl ftp://ftp.suse.com/ -v -u ftp:ftp --socks5 localhost:9050
* About to connect() to proxy localhost port 9050
* Trying 127.0.0.1... connected
* Connected to ftp.suse.com (127.0.0.1) port 9050
* Server auth using Basic with user 'ftp'
> GET HTTP/1.1
> Authorization: Basic ZnRwOmZ0cA==
> User-Agent: curl/7.15.4 (i486-pc-linux-gnu) libcurl/7.15.4 OpenSSL/0.9.8b
zlib/1.2.3 libidn/0.6.3
> Host: ftp.suse.com:21
> Accept: */*
>
220 "Welcome to the SUSE ftp server: Please login as user 'ftp'"
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.
530 Please login with USER and PASS.

421 Timeout.
* Connection #0 to host ftp.suse.com left intact
* Closing connection #0

Any hints?

Regards,
   Michael
Received on 2007-02-05