curl-users
Re: 回复: Re: 回复: Re: Curl can't work well over FTP protocol via socks5 proxy
Date: Mon, 11 Jun 2007 17:47:33 +0800
Hi Daniel,
I have tried to use FTP over SOCKS and also over FTP Proxy. I
am not clear on mentioning the FTP proxy in the CURL command. Please let
me know how to give the FTP Proxy in the curl. I have seen in one of the
posts that FTP Proxy is not supported in CURL. Please let me know.
Suneetha Gadam
Ext: 8643
tu0151034_at_yahoo.com.cn
Sent by: curl-users-bounces_at_cool.haxx.se
06/11/2007 05:21 PM
Please respond to
curl-users_at_cool.haxx.se
To
curl-users_at_cool.haxx.se
cc
Subject
回复: Re: 回复: Re: Curl can't work well over FTP protocol via socks5
proxy
Hi ,Dan ,thank you very much for your reply.
My complete command line is as followings:
$ curl -v ftp://tf:1983026@10.132.140.23/ --socks5 10.132.140.229:1081
--trace-ascii trace.log
The content of file "trace.log" is as followings:
===========================================================
== Info: About to connect() to proxy 10.132.140.229 port 1081 (#0)
== Info: Trying 10.132.140.229... == Info: connected
== Info: Connected to 10.132.140.229 (10.132.140.229) port 1081 (#0)
== Info: FTP 0x9494270 state change from STOP to WAIT220
<= Recv header, 63 bytes (0x3f)
0000: 220---------- Welcome to Pure-FTPd ----------
<= Recv header, 42 bytes (0x2a)
0000: 220-You are user number 1 of 30 allowed.
<= Recv header, 47 bytes (0x2f)
0000: 220-Local time is now 16:27. Server port: 21.
<= Recv header, 51 bytes (0x33)
0000: 220-This is a private system - No anonymous login
<= Recv header, 62 bytes (0x3e)
0000: 220 You will be disconnected after 15 minutes of inactivity.
=> Send header, 9 bytes (0x9)
0000: USER tf
== Info: FTP 0x9494270 state change from WAIT220 to USER
<= Recv header, 35 bytes (0x23)
0000: 331 User tf OK. Password required
=> Send header, 15 bytes (0xf)
0000: PASS 19830226
== Info: FTP 0x9494270 state change from USER to PASS
<= Recv header, 53 bytes (0x35)
0000: 230-User tf has group access to: gport wheel
<= Recv header, 43 bytes (0x2b)
0000: 230 OK. Current restricted directory is /
=> Send header, 5 bytes (0x5)
0000: PWD
== Info: FTP 0x9494270 state change from PASS to PWD
<= Recv header, 34 bytes (0x22)
0000: 257 "/" is your current location
== Info: Entry path is '/'
== Info: FTP 0x9494270 state change from PWD to STOP
== Info: protocol connect phase DONE
== Info: DO phase starts
=> Send header, 6 bytes (0x6)
0000: EPSV
== Info: FTP 0x9494270 state change from STOP to PASV
== Info: Connect data stream passively
<= Recv header, 42 bytes (0x2a)
0000: 229 Extended Passive mode OK (|||38424|)
== Info: Trying 10.132.140.229... == Info: connected
== Info: Connecting to 10.132.140.229 (10.132.140.229) port 1081
== Info: Can't complete SOCKS5 connection to 9.140.140.229:38424. (1)
== Info: FTP 0x9494270 state change from PASV to STOP
== Info: DO phase is complete
== Info: Closing connection #0
===========================================================
In addtion, my socks proxy was established by CCproxy. And other FTP tools
( like FileZilla, CuteFTP7 ) could successfully connect to aforementioned
FTP server (10.132.140.23) via my socks5 proxy.
Thank in advance.
Feng Tu
Daniel Stenberg <daniel_at_haxx.se> 写道:
On Mon, 11 Jun 2007, 峰 涂 wrote:
> I have analyzed the aforementioned two courses . I found that when
running
> script "test707", the port of FTP command connection( first phase ) was
> identical to that of FTP data connection( second phase ) --- that was
9000.
> I thinFB桞&Rv哤&RF哛&&芕茤W2&V6W6Rf&V662g&鲆FB鯾6鲋鍮&&FR鲡F啑22F鲡wBf銎器r嘈犘哛662FW7B66W2FW6R'&V662"抳骥B7W&RvB禬2桏W"桮VF桍主&R&VFF哛FW7B66W2F哛FW7B66R7GV魄F鯳2eE2&鲊2茥7FV鏂鎟鲡6栨v芌'B鏥&W"6鈝B桟6F哛2F6鲦鎂7BFF哛6諶662嘋鹦犘6桏RW&2&鱢朏RgV坡易G&6R66枓GV鍮桏W"6鲎芖FR7W&聮桏RW6S哣F桞鱓B6V6桭梖RFF朾孝乙Ⅱ鰡噦6R7W&骆嘑掷袪袪袪孝
[,>+}<C2鉚|嵻:#蹕巯:袪袪孝乙行犘啑2R种柭6鲧F栤6鲦f朏V鏔鍮鲼"&梖柶VvVB栨f&F桍忖朾桏R&V6朧鏐嗺"fR&V6V梖VBF啑2R种柭栤W'&"6R骥F杇F哛6V鍲W"栔諺FFV菕鍮FW7G&鲯F啑2R种柭鐠bF哛FW&栤F啑2
Received on 2007-06-11