In my desktop application I added access to various internet resources using boost::asio. All I do is sending HTTP requests (i.e to map tile servers) and read the results.
My code is based on the asio sync_client sample.
Now I get reports from customers who are unable to use these functions as they are running a proxy in their company. In a web browser they can enter the address of their proxy and everything is fine. Our application is unable to download data.
How can I add such support to my application?
I found the answer myself. It’s quite simple:
http://www.jmarshall.com/easy/http/#proxies
gives quite a brief and clear description how http proxies work.
All i had to do is add the following code to the asio sync_client sample sample :