Hi - FYI I ran into problems using WININET InternetOpenURL to access a
non-anonymous FTP site (e.g. ftp://username:***@ftp.site/test.txt)
through a CERN proxy (with NTLM or no authorization).
Turns out that readurlftp.exe from
http://support.microsoft.com/?id=216214 doesn't seem to work either.
Looking at TCP traces, WININET was trying to use the ftp site
username:password to log into the proxy.
The solution for me was to use UrlDownloadToFile and
UrlDownloadToCacheFile (URLMON.DLL) instead - MUCH simpler. Am posting
this in case anyone else finds same problem and is desperately googling
for the answer!!!!
To read an FTP folder you can scan the html you get back for links -
this is their suggested solution when using WININET through CERN to
access FTP anyway
http://msdn.microsoft.com/library/default.asp?url=/workshop/networking/moniker/reference/functions/urldownloadtocachefile.asp
Let me know if I got it wrong...
Michael Mueller-Heumann
***@gmail.com