views:

55

answers:

0

Hi

I'm working on some old ATL OCX, that is used as "download manager". It downloads files using URLDownloadToFile API.

Previously, it was hosted as ActiveX on web page so in case the server required authentication it was done by IE. Now it is part of executable, so it should take care of authentication. Let say user provided username and password, how I can actually to do "authentication" ? I need support Simple Web Authentication and NTLM for IIS.

For Simple Web Authentication i found out that passing username/password before URL works fine. But I'm not sure that it is a proper way to so.

Please advise Thank you Zaky