cURL / Mailing Lists / curl-users / Single Mail

curl-users

Curl can't work well over FTP protocol via socks5 proxy

From: ·å Í¿ <tu0151034_at_yahoo.com.cn>
Date: Fri, 8 Jun 2007 15:15:06 +0800 (CST)

Hi. I was using curl with version 7.16.2.
   
  I found that curl can't work well over FTP protocol via socks5 proxy. For example, I wanted to list the root document of a FTP server:
   
  $ curl -v ftp://xx:xxxxx@URL/ --socks5 xx.xx.xx.xx:1081
   
  Unfortunately, curl would not achieve it. It would send out information as followings:
  ==========================================================
  * About to connect() to proxy xx.xx.xx.xx port 1081 (#0)
* Trying xx.xx.xx.xx... connected
* Connected to xx.xx.xx.xx (xx.xx.xx.xx) port 1081 (#0)
* FTP 0x906825c state change from STOP to WAIT220
< 220---------- Welcome to Pure-FTPd ----------
> USER xx
  * FTP 0x906825c state change from WAIT220 to USER
< 331 User xx OK. Password required
> PASS xxxxx
  * FTP 0x906825c state change from USER to PASS
< 230-User xx has group access to: gport wheel
< 230 OK. Current restricted directory is /
> PWD
* FTP 0x906825c state change from PASS to PWD
< 257 "/" is your current location
* Entry path is '/'
* FTP 0x906825c state change from PWD to STOP
* protocol connect phase DONE
* DO phase starts
> EPSV
* FTP 0x906825c state change from STOP to PASV
* Connect data stream passively
< 229 Extended Passive mode OK (|||30728|)
* Trying xx.xx.xx.xx... connected
* Connecting to xx.xx.xx.xx (xx.xx.xx.xx) port 1081
* Can't complete SOCKS5 connection to xx.xx.xx.xx:30728. (1)
* FTP 0x906825c state change from PASV to STOP
* DO phase is complete
* Closing connection #0
curl: (7) Can't complete SOCKS5 connection to xx.xx.xx.xx:30728. (1)
=========================================================
   
  Did anybody else caught this problem? Thanks in advance.
   
  Best Regards
   
  Feng Tu

       
---------------------------------
 ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡
Received on 2007-06-08