https://bugs.winehq.org/show_bug.cgi?id=29249
--- Comment #15 from Bruno Jesus 00cpxxx@gmail.com --- AFAICS the problem is that wininet thinks every URL points to a file and then tries to download it [1] using FtpOpenFileW.
http://source.winehq.org/source/dlls/wininet/internet.c#3477 :
case INTERNET_SCHEME_FTP: client = FTP_Connect(hIC, host, urlComponents.nPort, user, pass, dwFlags, dwContext, INET_OPENURL); if(client == NULL) break; client1 = FtpOpenFileW(client, path, GENERIC_READ, dwFlags, dwContext); if(client1 == NULL) { InternetCloseHandle(client); break; } break;
The file in this case is "/" which means to retrieve the root folder listing for the FTP.