Skip to content

Commit c9a4338

Browse files
committed
Fix supported schemes in docs
1 parent 3ff77d3 commit c9a4338

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

xml/System.Net.Http/HttpClient.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,15 @@ The environment variables used for `DefaultProxy` initialization on Windows and
362362
363363
On systems where environment variables are case-sensitive, the variable names may be all lowercase or all uppercase. The lowercase names are checked first.
364364
365-
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an http URL, optionally including a username and password for proxy authentication. The URL must be start with `http`, not `https`, and cannot include any text after the hostname, IP, or port.
365+
The proxy server may be a hostname or IP address, optionally followed by a colon and port number, or it may be an http, https, socks4, socks4a or socks5 URL, optionally including a username and password for proxy authentication. The URL must be start with `http`, `https`, `socks4`, `socks4a` or `socks5`, and cannot include any text after the hostname, IP, or port.
366+
The URL can optionally include a username and password for proxy authentication for the schemes `http`, `https` and `socks5`. For the schemes `socks4` and `socks4a` only an userid is supported.
367+
368+
* **`http`**: `http://[username:password@]hostname[:port]`
369+
* **`https`**: `https://[username:password@]hostname[:port]`
370+
* **`socks4`**: `socks4://[userid@]hostname[:port]`
371+
* **`socks4a`**: `socks4a://[userid@]hostname[:port]`
372+
* **`socks5`**: `socks5://[username:password@]hostname[:port]`
373+
366374
]]></format>
367375
</remarks>
368376
<exception cref="T:System.ArgumentNullException">The value passed cannot be <see langword="null" />.</exception>

0 commit comments

Comments
 (0)