You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to make my client application proxy aware, and using WinHttpGetIEProxyConfigForCurrentUser to get the proxy configuration before creating my HttpClient.
In many of my users cases this means lpszAutoConfigUrl = "http://something.com/proxy.pac".
However, it seems Casablanca does not handle this how I would expect. The .pac file is not parsed by casablanca and no correct proxy is subsequently set, as far as I can tell. A quick look through http_client_winhttp seems to suggest I can only use a direct proxy or WPAD auto discovery via DNS/DHCP?
How can I configure Casablanca to correctly use a .pac proxy?
Thanks,
Chris
The text was updated successfully, but these errors were encountered:
vslavik
added a commit
to vslavik/poedit
that referenced
this issue
Jun 22, 2016
Implement the recommended behaviour for "well-written WinHTTP apps", see
https://blogs.msdn.microsoft.com/ieinternals/2013/10/11/understanding-web-proxy-configuration/
I.e. use IE proxy settings for the current user unless WinHTTP proxy is
explicitly defined (which seems to be quite rare in practice). This makes
applications using C++ REST SDK work out of the box on the networks where IE
is configured to access the Internet (which will almost always be the case),
whether via a fixed proxy or using proxy-configuration, using either WPAD or
fixed PAC URL (this fixesmicrosoft#182
in passing).
I'm trying to make my client application proxy aware, and using WinHttpGetIEProxyConfigForCurrentUser to get the proxy configuration before creating my HttpClient.
In many of my users cases this means lpszAutoConfigUrl = "http://something.com/proxy.pac".
However, it seems Casablanca does not handle this how I would expect. The .pac file is not parsed by casablanca and no correct proxy is subsequently set, as far as I can tell. A quick look through http_client_winhttp seems to suggest I can only use a direct proxy or WPAD auto discovery via DNS/DHCP?
How can I configure Casablanca to correctly use a .pac proxy?
Thanks,
Chris
The text was updated successfully, but these errors were encountered: