Comment #5 on issue 5461 by hc...@chromium.org: Error while trying downloading on clubic.com servers http://code.google.com/p/chromium/issues/detail?id=5461
I looked into how firefox did the ftp connections, they have the following command sequence: USER <something> > 331 PASS <something> > 230 SYST > 215 Unix type: L8 PWD > 257 "/" is CWD TYPE I > 200 Type okay. PASV > 227 Entering Passive Mode SIZE /temp-clubic- rx1388/logiciel/jamp-player_jamp_player_4.1.0.5_anglais_270506.exe > 213 16742799 MDTM /temp-clubic- rx1388/logiciel/jamp-player_jamp_player_4.1.0.5_anglais_270506.exe > 213 20090402152624 RETR /temp-clubic- rx1388/logiciel/jamp-player_jamp_player_4.1.0.5_anglais_270506.exe > 150 Data connection accepted from <ip> What Chrome did: USER <something> > 331 PASS <something> > 230 CWD /temp-clubic- rx1388/logiciel/jamp-player_jamp_player_4.1.0.5_anglais_270506.exe > 550 That is not a directory. TYPE A > 200 Type okay. PASV > 227 Entering Passive Mode LIST /temp-clubic- rx1388/logiciel/jamp-player_jamp_player_4.1.0.5_anglais_270506.exe 553 Permission denied. It seems to me the LIST command is causing server to deny us, the actual method calls to WinInet were: 1. InternetConnectA USER and PASS 2. FtpSetCurrentDirectoryA CWD 3. FtpFindFirstFileA LIST 4. <connection reset> (Error: 12031) Since the logic of our FTP code is always assume the URL is a directory first and fall back to file it's not a directory. It seems to me always start with probing the path with SIZE command is a better idea. But anyway I'll delay fixing this we have the new ftp stack. -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---