Overview
Features
Download
Documentation
Community
Add-Ons & Services

How to bypass proxy

A general discussion forum.

How to bypass proxy

Postby mmelanco » 16 Feb 2012, 22:48

I am trying to find how to do that same as this winhttp library call to bypass proxy.

hInternetSession = ::InternetOpen(AfxGetAppName(), INTERNET_OPEN_TYPE_PROXY, NULL, "*", INTERNET_FLAG_DONT_CACHE | INTERNET_FLAG_RELOAD);

I don't seem to find how to accomplish this in Poco Libraries.

Thanks,
MarcM
mmelanco
 
Posts: 4
Joined: 03 Oct 2011, 15:43

Re: How to bypass proxy

Postby guenter » 21 Feb 2012, 22:28

You'll need to get the bypass list by some other means and check the IP address of the host against it.
If a proxy is needed, call setProxy() and setProxyCredentials() on the HTTPClientSession.
guenter
 
Posts: 1110
Joined: 11 Jul 2006, 16:27
Location: Austria

Re: How to bypass proxy

Postby mmelanco » 22 Feb 2012, 17:44

May be I do not understand how it is implemented in winhttp library. The bypass list * means all from what I understand. Which mean do not use the proxy ("Passes requests to the proxy unless a proxy bypass list is supplied and the name to be resolved bypasses the proxy."). If that is the case how do I accomplish that in Poco?
Thanks,
MarcM
mmelanco
 
Posts: 4
Joined: 03 Oct 2011, 15:43

Re: How to bypass proxy

Postby mmelanco » 22 Feb 2012, 22:37

I guess the proper question would be if there is a way like the wininet call to get the proxy to establish trusted connection without having the explicitly pass them in. As I could not find a way to obtain proxy username and password automatically.

Hope this make sense.
mmelanco
 
Posts: 4
Joined: 03 Oct 2011, 15:43


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 2 guests

cron