如何突破线程限制?FTP OR HTTP~
我的实验如下:(自己临时的FTP,限制同一个IP只有1线程)
使用多重连接,第一线直连,第二线代理,使用了HTTP代理,但却下FTP的,不行吗??
第一线状态如下:
2003-10-31 13:17:54.671 Connecting to 127.0.0.1:21
2003-10-31 13:17:54.687 Socket connected, waiting for welcome message.
2003-10-31 13:17:54.687 220 Serv-U FTP Server v4.0 for WinSock ready...
2003-10-31 13:17:54.687 USER edl
2003-10-31 13:17:54.703 331 User name okay, need password.
2003-10-31 13:17:54.703 PASS ********
2003-10-31 13:17:54.703 230-欢迎来到岚轩的个人FTP服务器
2003-10-31 13:17:54.703 230-你的IP地址是:127.0.0.1
2003-10-31 13:17:54.703 230-目前服务器所在的时间是13:17:54
2003-10-31 13:17:54.703 230-已经有14个用户在最近24小时访问过本FTP
2003-10-31 13:17:54.703 230-本FTP服务器已经运行了0天,0小时和15分.
2003-10-31 13:17:54.703 230-服务器的运行情况
2003-10-31 13:17:54.718 230-所有登录用户数量:10 total
2003-10-31 13:17:54.718 230-当前登录用户数量:1
2003-10-31 13:17:54.718 230-已经下载字节数:38924 Kb
2003-10-31 13:17:54.718 230-已经上传字节数:0 Kb
2003-10-31 13:17:54.718 230-已经下载文件数:0
2003-10-31 13:17:54.718 230-已经上传文件数:0
2003-10-31 13:17:54.734 230-服务器平均带宽:43.443 Kb/sec
2003-10-31 13:17:54.734 230-服务器当前带宽:0.000 Kb/sec
2003-10-31 13:17:54.734 230 User logged in, proceed.
2003-10-31 13:17:54.734 Login successfully.
2003-10-31 13:17:54.734 MDTM /[dmhy][aoi][001][jap_chn][1000k][v2].rmvb
2003-10-31 13:17:54.750 213 20031029085452
2003-10-31 13:17:54.750 TYPE I
2003-10-31 13:17:54.750 200 Type set to I.
2003-10-31 13:17:54.750 Start receiving data
2003-10-31 13:17:54.750 PASV
2003-10-31 13:17:54.750 227 Entering Passive Mode (127,0,0,1,16,22)
2003-10-31 13:17:54.765 REST 53488232
2003-10-31 13:17:54.765 350 Restarting at 53488232. Send STORE or RETRIEVE.
2003-10-31 13:17:54.765 This site can resume broken downloads.
2003-10-31 13:17:54.781 RETR /[dmhy][aoi][001][jap_chn][1000k][v2].rmvb
2003-10-31 13:17:54.781 150 Opening BINARY mode data connection for [dmhy][aoi][001][jap_chn][1000k][v2].rmvb (55317558 bytes).
2003-10-31 13:17:56.265 226 Transfer complete.
2003-10-31 13:17:56.281 Finish At 55317558
2003-10-31 13:17:56.281 PASV
2003-10-31 13:17:56.281 227 Entering Passive Mode (127,0,0,1,16,25)
2003-10-31 13:17:56.281 REST 34573473
2003-10-31 13:17:56.281 350 Restarting at 34573473. Send STORE or RETRIEVE.
2003-10-31 13:17:56.281 This site can resume broken downloads.
2003-10-31 13:17:56.312 RETR /[dmhy][aoi][001][jap_chn][1000k][v2].rmvb
2003-10-31 13:17:56.343 150 Opening BINARY mode data connection for [dmhy][aoi][001][jap_chn][1000k][v2].rmvb (55317558 bytes).
2003-10-31 13:18:02.421 426 Data connection closed, file transfer [dmhy][aoi][001][jap_chn][1000k][v2].rmvb aborted.
2003-10-31 13:18:02.421 User cancel at 41137785
第二线如下:
2003-10-31 13:17:54.796 Connecting proxy to mail.t-cat.edu.hk:1288
2003-10-31 13:17:54.796 Connecting proxy to 202.82.19.51:1288
2003-10-31 13:17:54.984 Connected
2003-10-31 13:17:54.984 GET
ftp://edl:edl@127.0.0.1/%5Bdmhy%5D%5Baoi%5D%5B001%5D%5Bjap_chn%5D%5B1000k%5D%5Bv2%5D.rmvb HTTP/1.1
2003-10-31 13:17:54.984 Host: 127.0.0.1:21
2003-10-31 13:17:54.984 User-Agent: Mozilla/4.0 (compatible; MSIE 5.00; Windows 98)
2003-10-31 13:17:54.984 Range: bytes=27658779-
2003-10-31 13:17:54.984 Proxy-Connection: Keep-Alive
2003-10-31 13:17:59.250 HTTP/1.1 502 Proxy Error ( Connection refused )
2003-10-31 13:17:59.250 Via:1.1 W06S002E
2003-10-31 13:17:59.250 Connection: close
2003-10-31 13:17:59.250 Proxy-Connection: close
2003-10-31 13:17:59.265 Pragma: no-cache
2003-10-31 13:17:59.265 Cache-Control: no-cache
2003-10-31 13:17:59.265 Content-Type: text/html
2003-10-31 13:17:59.265 Content-Length: 3636
2003-10-31 13:17:59.265 Wait 31 seconds to retry
FTP的无法用HTTP代理连接?(应该如此!)怎么样的代理可以完成我的想法?(只是实验,有兴趣来说说~)
召唤代理使用高手!{d} :'(