http://bugs.winehq.org/show_bug.cgi?id=9741
Summary: URLDownloadToFile only supports HTTP URL's Product: Wine Version: CVS/GIT Platform: Other OS/Version: other Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-urlmon AssignedTo: wine-bugs@winehq.org ReportedBy: mail@colinfinck.de
The URLDownloadToFile function (exactly: URLDownloadToFileW) of urlmon.dll only supports HTTP URL's. When I try URLDownloadToFile under Windows XP with FTP URL's, this also works. But it doesn't work with Wine's urlmon.dll.
I did not check if other protocols are also supported by the XP version of URLDownloadToFile, but at least support for FTP URL's is missing in Wine's version.
In the wine/dlls/urlmon/umon.c file on line 1411, I also see that only HTTP functions are used and the protocol is not checked, so I highly assume the bug to be there.
http://bugs.winehq.org/show_bug.cgi?id=9741
--- Comment #1 from James Hawkins truiken@gmail.com 2007-09-22 14:38:20 --- What app requires this functionality?
http://bugs.winehq.org/show_bug.cgi?id=9741
--- Comment #2 from Colin Finck mail@colinfinck.de 2007-09-22 14:53:12 --- An example application is the Downloader from the ReactOS Project (available over SVN: svn://svn.reactos.org/reactos/trunk/rosapps/downloader). In ReactOS, Wine's urlmon.dll is also used, so the problem is also there.
When you edit the XML file of the Downloader application and replace a HTTP URL with a FTP URL, it can download the file from the FTP URL with Windows XP's urlmon.dll, but not with Wine's version.
If you want, I can attach a compiled version of the Downloader app together with a XML file, which shows the problem.
http://bugs.winehq.org/show_bug.cgi?id=9741
--- Comment #3 from James Hawkins truiken@gmail.com 2007-09-22 14:57:32 --- Please do.
http://bugs.winehq.org/show_bug.cgi?id=9741
--- Comment #4 from Colin Finck mail@colinfinck.de 2007-09-22 15:36:59 --- Created an attachment (id=8179) --> (http://bugs.winehq.org/attachment.cgi?id=8179) Downloader app together with a XML file, which contains a FTP URL
Extract the attached files into a directory.
Then change the current directory to the directory, in which you extracted the files and run "downloader.exe" with Wine. This is necessary as the application searches for the XML file in the current directory.
Then click on "Internet & Network" on the left, choose "Firefox 1.5" on the right and hit the "Download!" button. You will see that the progress bar won't change. Under Windows XP it does and the application correctly downloads the file.
When you look at the source code of Downloader (http://svn.reactos.org/svn/reactos/trunk/rosapps/downloader/download.c?revis...), you see that the application uses the URLDownloadToFileW function on line 248.
http://bugs.winehq.org/show_bug.cgi?id=9741
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com Status|UNCONFIRMED |RESOLVED Resolution| |FIXED
--- Comment #5 from Jacek Caban jacek@codeweavers.com 2008-02-19 09:25:24 --- URLDownloadToFile limitation is fixed now. FTP still won't work, but that's another bug.
http://bugs.winehq.org/show_bug.cgi?id=9741
Dan Kegel dank@kegel.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Dan Kegel dank@kegel.com 2008-02-22 11:39:42 --- 0.9.56 released, so closing all bugs marked as RESOLVED FIXED.
http://bugs.winehq.org/show_bug.cgi?id=9741
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|CVS/GIT |unspecified