cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Windows Programming
Log-into website with WinHTTP.
Log-into website with WinHTTP.
Nov 14, 2014 at 2:40pm UTC
cybermonkeyso
(20)
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.
Nov 14, 2014 at 4:15pm UTC
modoran
(2077)
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.