[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] Need to "authenticate" from C++
- Subject: [ale] Need to "authenticate" from C++
- From: ale_nospam at fayettedigital.com (Jim Lynch)
- Date: Sat, 10 Dec 2005 07:25:48 -0500
- In-reply-to: <003801c5fcfd$c26ebd90$1f03a8c0@tonylaptop>
- References: <003801c5fcfd$c26ebd90$1f03a8c0@tonylaptop>
I'm not married to libwww, it's just what I'm familiar with. Thanks to
both of you for the tips. I'll find a copy of libcurl and give it a try.
Jim.
Tony Carter wrote:
>>-----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
>
>_______________________________________________
>Ale mailing list
>Ale at ale.org
>http://www.ale.org/mailman/listinfo/ale
>
>
>
>
>