Perform a simple HTTP request using C ++ / Boost through a proxy server?

I am new to Boost and my only experience is surfing, although the proxy using the library uses .NET (which is very convenient for this purpose). Now I am trying to execute a simple HTTP request through an HTTP proxy.

Is there a neat way to do this using boost directly?

My proxy uses NTLM authentication.

+4
source share
1 answer

No, Boost provides neither an HTTP client, nor a way to interact with proxies. You will definitely have to implement these functions yourself.

To be clear, yes, you can implement an HTTP client using Boost.Asio. But implementing a client that can talk reliably through a proxy server is much more complicated, and Asio does not provide any support for this other than the lowest level socket. This, of course, does not include NTLM authentication frameworks, which can be difficult to get right.

More sophisticated libraries like cURL provide this support.

+6
source

All Articles