tags:

views:

187

answers:

4

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.

+2  A: 

What, seriously?

Ant P.
I am looking for a code snippet of a socket creation, with a socket send() followed by a recv()
Mike Curry
Well, then you should edit your question and make this clear! People generally do not read through all comments to find the correct question...
gimpf
A: 

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.

gimpf
A: 

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.

17 of 26
+1  A: 

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.

Doubt