Boost logo

Boost Users :

Subject: Re: [Boost-users] BOOST:ASIO how to do HTTPS authentication using SSL
From: Igor R (boost.lists_at_[hidden])
Date: 2010-02-10 15:59:39


> 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.cpp
and there's an example of HTTP client:
http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/example/http/client/async_client.cpp

Now you compose your own code that performs http requests over ssl.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net