Log-into website with WinHTTP.

Is there any way to log-into a website where the username and password is controlled by .htaccess and .htpasswd?

I am using WinHTTP for the `URLDownloadToFile` function.
Why don't you use liburl ? Is much much easier to use:
http://curl.haxx.se/libcurl/

With libcurl is just a matter of saying http://username:password@www.example.com/path/to/restricted/folder/filename

It could be supported by WinHTTP too, didn't tried.
Topic archived. No new replies allowed.