{"id":1161,"date":"2026-12-05T22:31:29","date_gmt":"2026-12-05T20:31:29","guid":{"rendered":"https:\/\/mexela.com\/blog\/winhttp-proxy-windows\/"},"modified":"2026-12-05T22:48:11","modified_gmt":"2026-12-05T20:48:11","slug":"winhttp-proxy-windows","status":"publish","type":"post","link":"https:\/\/mexela.com\/blog\/winhttp-proxy-windows\/","title":{"rendered":"WinHTTP Proxy on Windows: Why the Browser Works but an App Doesn\u2019t"},"content":{"rendered":"<p>A browser can open a URL while a Windows service on the same machine times out. The two processes might not use the same proxy, user account, trust store or network policy. Start by identifying the process making the failed request. The command below inspects WinHTTP; it will not change Windows settings.<\/p>\n<h2 id=\"read-winhttp\">Read the WinHTTP proxy setting<\/h2>\n<p>In PowerShell or Command Prompt, run:<\/p>\n<pre id=\"winhttp-read\"><code class=\"language-powershell\">netsh winhttp show proxy<\/code><\/pre>\n<p>Keep the output local if it contains internal hostnames. A configured server shows a WinHTTP setting; it does not prove that the failing app used that setting on its last request. A direct setting likewise does not prove every Windows program connects without a proxy. Some applications supply their own settings or use a different HTTP stack. See the <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows-server\/administration\/windows-commands\/netsh-winhttp\">Microsoft WinHTTP command reference<\/a>.<\/p>\n<h2 id=\"winhttp-vs-browser\">Compare the failing client, not just the machine<\/h2>\n<table>\n<thead>\n<tr>\n<th>Working request<\/th>\n<th>Failing request<\/th>\n<th>Check first<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>Interactive browser<\/td>\n<td>Background service<\/td>\n<td>Service identity, network policy and which HTTP stack it uses.<\/td>\n<\/tr>\n<tr>\n<td>Browser on the current user\u2019s network<\/td>\n<td>Scheduled task running as another user<\/td>\n<td>Which profile and settings are available to the task.<\/td>\n<\/tr>\n<tr>\n<td>PowerShell request with an explicit proxy<\/td>\n<td>Application with no explicit proxy<\/td>\n<td>Whether the application inherits WinHTTP, system or app-specific settings.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>When possible, reproduce one authorized diagnostic request inside the affected app or service and compare the result with a browser request to the same endpoint. Windows Update has its own documented selection behavior; see <a href=\"https:\/\/learn.microsoft.com\/en-us\/troubleshoot\/windows-server\/installing-updates-features-roles\/windows-update-client-determines-proxy-server-connect\">Microsoft\u2019s Windows Update explanation<\/a> rather than assuming it behaves like an arbitrary Windows service.<\/p>\n<h2 id=\"winhttp-next-step\">Leave system settings alone until you\u2019ve identified the owner<\/h2>\n<p>Do not import browser settings or reset the proxy as a first step. Either change can affect software unrelated to the original failure. If a WinHTTP change is needed, have the owner record the previous state and test the affected application under its real identity. To locate browser or OS proxy settings, see the <a href=\"\/blog\/find-proxy-server-address\/\">address and port guide<\/a>. For an explicit one-client check, use the <a href=\"\/blog\/powershell-proxy-setup\/\">PowerShell proxy guide<\/a> or the <a href=\"\/blog\/proxy-setup-developer-guides\/\">developer integration hub<\/a>.<\/p>\n<p><strong>Verification, December 5, 2026:<\/strong> The displayed command ran on Windows and reported the same WinHTTP configuration before and after the check. No Windows configuration was changed, and no service or browser routing behavior was inferred from the output.<\/p>\n<p><!-- mexela-semrush-winhttp-advanced-scheduled-service-checks-20261206:start --><\/p>\n<section aria-labelledby=\"winhttp-advanced-settings-and-service-checks\">\n<h2 id=\"winhttp-advanced-settings-and-service-checks\">Read advanced settings and reproduce the affected service request<\/h2>\n<h3>What if the basic WinHTTP check reports direct access?<\/h3>\n<p>On Windows versions that support it, <code>netsh winhttp show advproxy<\/code> also reads the advanced configuration. Look for an automatic configuration URL, automatic detection, any bypass list, and whether the settings apply to a user or the machine. Keep internal proxy details local. The route for a particular URL depends on which settings and automatic rules the application uses. See <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/winhttp\/netsh-exe-commands#show-advproxy\">Microsoft\u2019s advanced WinHTTP reference<\/a>.<\/p>\n<h3>How can I investigate a scheduled task without changing the proxy?<\/h3>\n<p>Ask the task owner to make one approved diagnostic request through the task\u2019s normal client and account. Record when it failed, the approved destination label, and the first error. With WinHTTP 12002, record the timeout phase if the application exposes it. For 12029, determine which host and port the service tried to reach. For 12175, inspect the certificate and the trust settings used by the process while keeping validation enabled. An HTTP 407 response calls for checking the service account\u2019s proxy authentication. See <a href=\"https:\/\/learn.microsoft.com\/en-us\/windows\/win32\/winhttp\/error-messages\">Microsoft\u2019s WinHTTP error reference<\/a>.<\/p>\n<\/section>\n<p><!-- mexela-semrush-winhttp-advanced-scheduled-service-checks-20261206:end --><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Inspect WinHTTP proxy settings without changing Windows. Learn why a browser, a Windows service and a client can use different network paths.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[189],"tags":[],"_links":{"self":[{"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/posts\/1161"}],"collection":[{"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/comments?post=1161"}],"version-history":[{"count":0,"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/posts\/1161\/revisions"}],"wp:attachment":[{"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/media?parent=1161"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/categories?post=1161"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mexela.com\/blog\/wp-json\/wp\/v2\/tags?post=1161"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}