Thank Igor for pointing it out, Actually I do have http client working using boost::asio both for uploading and downloading a file for http server. With simple http request and response I can use the TCP viewer and see what is being transferred over the wire, that helps me creating the request in right format. But authentication request over HTTPS are encrypted and I am not sure how it lo like, also WinInet provide a special method for setting username and password, so I am not sure how the request looks like. That why I was wondering about the format in which user name and password will be sent? So I am looking for login/authentication example using socket/boost::asio. Thanks, Akhilesh Kumar -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org] On Behalf Of Igor R Sent: Wednesday, February 10, 2010 1:00 PM To: boost-users@lists.boost.org Subject: Re: [Boost-users] BOOST:ASIO how to do HTTPS authentication using SSL
I have working implementation of HTTP authentication using WinInet but I want to switch to BOOST::ASIO
Note that WinInet has high-level API for HTTP requests, while asio primarily deals with socket level.
Is there any code sample available to do the same using boost::asio and SSL?
Yes, there's an example showing how to use ssl socket: http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/ssl/client.... and there's an example of HTTP client: http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/http/client... Now you compose your own code that performs http requests over ssl. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users