diff --git a/docs/fundamentals/networking/http/httpclient.md b/docs/fundamentals/networking/http/httpclient.md index af06f25dd517b..4bdf84ecf4824 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 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: - `HTTP_PROXY`: The proxy server used on HTTP requests.