cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl-7.16.1-20070208/src/curl : socks5 looks still broken

From: Jochen Hayek <Jochen+curl_at_Hayek.name>
Date: Fri, 09 Feb 2007 15:56:54 +0100

>>>>> "MS" == Manfred Schwarb writes:

> On Fri, 2 Feb 2007, Manfred Schwarb wrote:

>> > I instrumented then url.c with some infof's and tracked it down
>> > somewhat.
>>
>> > The problem arises because of the merge of "proxy" and
>> "data->change.proxy",
>> > which turned in 7.16.1 into "conn->bits.httpproxy", but which seems not
>> to
>> > mean the same.
>>
>> Ah, yes. There is some confusions in the code and a bit of prejudice
>> towards
>> HTTP proxies...
>>
>> Can you test the attached patch and see if it makes things work better in
>> your
>> end?
>>

    MS> Yes, it works flawless so far. Thanks!

It's bad, but it seems not to work for me.

Although ... it might very well be ..., that the socks server (dante) needs fixing instead.
But have a look yourself!

I am using "--ftp-port - --disable-eprt", because that server requests "active mode" and complains about "EPRT".

I have no idea, why I get "425 Unable to build data connection: Connection refused" after that "NLST".

Anybody any idea?

How much would I have to invest in commercial help from haxx.se ?

Jochen

[2007-02-09 02:38:42] johayek@HayekJ $ /usr/local/src/tmp/curl-7.16.1-20070208/src/curl --verbose --ftp-port - --disable-eprt --list-only ftp://this_user:this_password@ftp.this_domain.com
* About to connect() to ftp.this_domain.com port 21 (#0)
* Trying 151.208.116.150... connected
* Connected to ftp.this_domain.com (151.208.116.150) port 21 (#0)
< 220 our FTP server
> USER this_user
< 331 Password required for this_user.
> PASS this_password
< 230 User this_user logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> PORT 10,0,4,119,180,254
< 200 PORT command successful
* Connect data stream actively
> TYPE A
< 200 Type set to A
> NLST
< 150 Opening ASCII mode data connection for file list
* Connection accepted from server
* Maxdownload = -1
GILB_Index_070201.csv
GILB_Constits_070201.csv
< 226 Transfer complete.
* Connection #0 to host ftp.this_domain.com left intact
> QUIT
< 221 Goodbye.
* Closing connection #0

[2007-02-09 02:38:49] johayek@HayekJ $ /usr/local/src/tmp/curl-7.16.1-20070208/src/curl --socks5 HayekH:1080 --verbose --ftp-port - --disable-eprt --list-only ftp://this_user:this_password@ftp.this_domain.com
* About to connect() to proxy HayekH port 1080 (#0)
* Trying 10.0.4.117... connected
* Connected to HayekH (10.0.4.117) port 1080 (#0)
< 220 our FTP server
> USER this_user
< 331 Password required for this_user.
> PASS this_password
< 230 User this_user logged in.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> PORT 10,0,4,119,161,201
< 200 PORT command successful
* Connect data stream actively
> TYPE A
< 200 Type set to A
> NLST
< 425 Unable to build data connection: Connection refused
* RETR response: 425
* Connection #0 to host ftp.this_domain.com left intact
curl: (19) RETR response: 425
> QUIT
< 221 Goodbye.
* Closing connection #0
Received on 2007-02-12