Kladskull
Kladskull

Reputation: 10752

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.

Upvotes: 0

Views: 431

Answers (4)

Ari Pernick
Ari Pernick

Reputation: 479

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.

Upvotes: 1

17 of 26
17 of 26

Reputation: 27382

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.

Upvotes: 0

gimpf
gimpf

Reputation: 4511

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.

Upvotes: 0

user42092
user42092

Reputation:

What, seriously?

Upvotes: 2

Related Questions