Wednesday, April 6, 2011

Can someone give me an example of a Unmanaged C++ HTML Client with proxy support?

Can someone give me an example of a Unmanaged C++ HTML Client with proxy support?

I want to do some get and posts inside my unmanaged c++ programs, ideally I would like to allow for proxy server configuration, or just use the IE defaults.

I am not looking for hand outs, just something to go by, as I can't seem to find too much on this.

From stackoverflow
  • What, seriously?

    Mike Curry : I am looking for a code snippet of a socket creation, with a socket send() followed by a recv()
    gimpf : Well, then you should edit your question and make this clear! People generally do not read through all comments to find the correct question...
  • I'd start with Boost.ASIO. It does not deliver out-of-the-box what you request, there are more complete libraries out there, it just happens that I don't know them.

  • If you're developing on Windows, you can use WinHttp to write a C++ HTTP client, I just finished implementing a client with it here at work.

    WinHttp is a fairly straightforward API to use and takes care of all the HTTP communication details for you.

  • Call WinHttpGetIEProxyConfigForCurrentUser to get the proxy configuration and then use the HTTP stack of your choice. I would avoid implementing your own psuedo HTTP stack, getting it right is more work then you probably think.

0 comments:

Post a Comment