Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8259543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T02:53:23+00:00 2026-06-08T02:53:23+00:00

In my desktop application I added access to various internet resources using boost::asio. All

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T02:53:24+00:00Added an answer on June 8, 2026 at 2:53 am

    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 :

    std::string myProxyServer = ...;
    int         myProxyPort   = ...;
    
    void doDownLoad(const std::string &in_server, const std::string &in_path, std::ostream &outstream)
    {
        std::string server      = in_server;
        std::string path        = in_path;
        char serice_port[255];
        strcpy(serice_port, "http");
    
        if(! myProxyServer.empty())
        {
            path   = "http://" + in_server + in_path;
            server = myProxyServer;
            if(myProxyPort    != 0)
                sprintf(serice_port, "%d", myProxyPort);
        }
        tcp::resolver resolver(io_service);
        tcp::resolver::query query(server, serice_port);
    
    ...
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm writing a Java SE (desktop) application that has to access different databases all
I'm using a HttpClient in a Java desktop application. I've added httpclient-4.0.1.jar and httpmime-4.0.1.jar
My desktop application serializes objects using XmlSerializer . I was suggested to leverage DataContractSerializer
I have a WPF Desktop application using Prism 4, in my bootstrapper i have
Currently, I am showing splash screen in my desktop application using the following way
I am working on integrating the social network vkontakte into my desktop application using
for a simple Java Desktop Application I added a JFrame Form with the assistant
I have a pretty standard Java Desktop Application in NetBeans. I recently added a
I have no experience building a .NET desktop application, all my experience is with
I'm developing a desktop application in WPF, application that is manipulating a considerable amount

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.