{"action":"created","issue":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/168","labels_url":"https://api.github.com/repos/Esri/resource-proxy/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/Esri/resource-proxy/issues/168/comments","events_url":"https://api.github.com/repos/Esri/resource-proxy/issues/168/events","html_url":"https://github.com/Esri/resource-proxy/pull/168","id":50215455,"number":168,"title":"DotNet: support system-level proxy settings","user":{"login":"pachetra","id":4212670,"avatar_url":"https://avatars.githubusercontent.com/u/4212670?v=3","gravatar_id":"","url":"https://api.github.com/users/pachetra","html_url":"https://github.com/pachetra","followers_url":"https://api.github.com/users/pachetra/followers","following_url":"https://api.github.com/users/pachetra/following{/other_user}","gists_url":"https://api.github.com/users/pachetra/gists{/gist_id}","starred_url":"https://api.github.com/users/pachetra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pachetra/subscriptions","organizations_url":"https://api.github.com/users/pachetra/orgs","repos_url":"https://api.github.com/users/pachetra/repos","events_url":"https://api.github.com/users/pachetra/events{/privacy}","received_events_url":"https://api.github.com/users/pachetra/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-26T19:00:08Z","updated_at":"2015-01-10T05:05:51Z","closed_at":"2014-12-10T02:31:29Z","pull_request":{"url":"https://api.github.com/repos/Esri/resource-proxy/pulls/168","html_url":"https://github.com/Esri/resource-proxy/pull/168","diff_url":"https://github.com/Esri/resource-proxy/pull/168.diff","patch_url":"https://github.com/Esri/resource-proxy/pull/168.patch"},"body":"The DotNet proxy script did not obey system-level proxy settings (to be specific, the Internet Explorer proxy settings of the currently impersonated user). Because of this, the script will fail in environments which require a web proxy for outgoing connections. This change adds support for system proxy settings on outgoing http web requests through [WebRequest.GetSystemWebProxy](http://msdn.microsoft.com/en-us/library/system.net.webrequest.getsystemwebproxy(v=vs.110).aspx). The change is backward compatible in the sense that, if no system proxy is configured for the current user, requests will still default to a direct connection.\r\n\r\nTested on Windows 7 Enterprise and Windows Server 2012 R2, IIS 8.5, .NET 4.5.2, on REST queries sent to ArcGIS Server, Geoserver, and OSM Overpass API.\r\n"},"comment":{"url":"https://api.github.com/repos/Esri/resource-proxy/issues/comments/69441640","html_url":"https://github.com/Esri/resource-proxy/pull/168#issuecomment-69441640","issue_url":"https://api.github.com/repos/Esri/resource-proxy/issues/168","id":69441640,"user":{"login":"jwoyame","id":3616026,"avatar_url":"https://avatars.githubusercontent.com/u/3616026?v=3","gravatar_id":"","url":"https://api.github.com/users/jwoyame","html_url":"https://github.com/jwoyame","followers_url":"https://api.github.com/users/jwoyame/followers","following_url":"https://api.github.com/users/jwoyame/following{/other_user}","gists_url":"https://api.github.com/users/jwoyame/gists{/gist_id}","starred_url":"https://api.github.com/users/jwoyame/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwoyame/subscriptions","organizations_url":"https://api.github.com/users/jwoyame/orgs","repos_url":"https://api.github.com/users/jwoyame/repos","events_url":"https://api.github.com/users/jwoyame/events{/privacy}","received_events_url":"https://api.github.com/users/jwoyame/received_events","type":"User","site_admin":false},"created_at":"2015-01-10T05:05:51Z","updated_at":"2015-01-10T05:05:51Z","body":"Thanks @pachetra. Unfortunately I am having issues with this on my Windows Server 2008 R2 setup (IIS 7.5). This line of code significantly increases the turnaround time for every proxy request. Each request takes only a few milliseconds without the line, but with it, the round-trip increases to anywhere from 2 to 13 seconds! Have you noticed how the performance compares for you?\r\n\r\nI do not have a proxy configured in Internet Options. The slowdown occurs even when proxying local resources.\r\n\r\nI will try to isolate the problem by testing with another machine, and checking out the request in Fiddler."}}