From 9a07a7aa95d47860b09a030c0297bdc592ff326d Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 14:15:41 +0000 Subject: [PATCH 1/3] Initial plan From 526b7c1c27712a1a01762f0de582a8080aa135fe Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 5 Mar 2026 14:19:43 +0000 Subject: [PATCH 2/3] Add WPAD protocol explanation to proxy detection docs Co-authored-by: BillWagner <493969+BillWagner@users.noreply.github.com> --- docs/fundamentals/networking/http/httpclient.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/fundamentals/networking/http/httpclient.md b/docs/fundamentals/networking/http/httpclient.md index af06f25dd517b..859925ee471cf 100644 --- a/docs/fundamentals/networking/http/httpclient.md +++ b/docs/fundamentals/networking/http/httpclient.md @@ -1,7 +1,8 @@ --- title: Make HTTP requests with the HttpClient description: Learn how to make HTTP requests and handle responses with the HttpClient in .NET. -ms.date: 03/09/2025 +ms.date: 03/05/2026 +ai-usage: ai-assisted --- # Make HTTP requests with the HttpClient class @@ -357,6 +358,8 @@ The default instance returned by this property initializes according to a differ - **macOS**: Read proxy configuration from environment variables, or if variables aren't defined, read from system proxy settings. - **Linux**: Read proxy configuration from environment variables, or if variables aren't defined, initialize a nonconfigured instance to bypass all addresses. +On Windows, when you enable **Automatically detect settings** in the proxy settings, the system uses the Web Proxy Auto-Discovery (WPAD) protocol. WPAD queries DNS for a host named `wpad` and downloads a Proxy Auto-Config (PAC) file from `http://wpad/wpad.dat`. The PAC file is a JavaScript file that the system evaluates to determine the correct proxy for each URL. + The `DefaultProxy` property initialization on Windows and Unix-based platforms uses the following environment variables: - `HTTP_PROXY`: The proxy server used on HTTP requests. From ddbe8d51544f4ade778d25f36f09c0b828021381 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Fri, 6 Mar 2026 10:12:53 -0500 Subject: [PATCH 3/3] Update docs/fundamentals/networking/http/httpclient.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- docs/fundamentals/networking/http/httpclient.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/fundamentals/networking/http/httpclient.md b/docs/fundamentals/networking/http/httpclient.md index 859925ee471cf..4bdf84ecf4824 100644 --- a/docs/fundamentals/networking/http/httpclient.md +++ b/docs/fundamentals/networking/http/httpclient.md @@ -358,7 +358,7 @@ The default instance returned by this property initializes according to a differ - **macOS**: Read proxy configuration from environment variables, or if variables aren't defined, read from system proxy settings. - **Linux**: Read proxy configuration from environment variables, or if variables aren't defined, initialize a nonconfigured instance to bypass all addresses. -On Windows, when you enable **Automatically detect settings** in the proxy settings, the system uses the Web Proxy Auto-Discovery (WPAD) protocol. WPAD queries DNS for a host named `wpad` and downloads a Proxy Auto-Config (PAC) file from `http://wpad/wpad.dat`. The PAC file is a JavaScript file that the system evaluates to determine the correct proxy for each URL. +On Windows, when you enable **Automatically detect settings** in the proxy settings, the system typically uses the Web Proxy Auto-Discovery (WPAD) protocol. In the most common configuration, WPAD queries DNS for a host named `wpad` (and might try variants based on DNS search suffixes), then downloads a Proxy Auto-Config (PAC) file, often from a URL such as `http://wpad/wpad.dat`. Network administrators can also configure WPAD through DHCP or custom PAC URLs, so the exact discovery steps and PAC URL depend on your network configuration. The PAC file is a JavaScript file that the system evaluates to determine the correct proxy for each URL. The `DefaultProxy` property initialization on Windows and Unix-based platforms uses the following environment variables: