[ale] Need to "authenticate" from C++

Tony Carter tcarter at entrusion.com
Fri Dec 9 15:18:46 EST 2005


> -----Original Message-----
> From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On 
> Behalf Of Jim Lynch
> Sent: Friday, December 09, 2005 2:32 PM
> To: ale at ale.org
> Subject: [ale] Need to "authenticate" from C++
> 
> I know how to use libwww to do normal posts and gets and pass 
> parameters to web pages, but I now need to be able to use C++ 
> to log into a web page that uses the .htaccess method of 
> authentication.  Has anyone any idea how I'd need to pass the 
> username and password to get authenticated or even where to 
> start looking for the answer?
> 
> Thanks,
> Jim.

See: http://www.w3.org/Library/src/HTAAUtil.html for the how-to and sample.

Personally, I use libcurl. curl_easy_setopt(easyhandle, CURLOPT_USERPWD,
"myname:thesecret"); 
See  man libcurl-tutorial.

-Tony




More information about the Ale mailing list