Skip to content

Commit 0121963

Browse files
deeprobinMihaZupan
andauthored
Fix supported schemes in docs (#10600)
* Fix supported schemes in docs * Tweak proxy description --------- Co-authored-by: Miha Zupan <[email protected]>
1 parent f68c257 commit 0121963

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. The URL cannot include any text after the hostname, IP, or port. If a scheme isn't specified, `http` is assumed.
366+
The URL may optionally include a username and password for proxy authentication, but the password is ignored when using `socks4` or `socks4a` as the protocols have no support for password authentication.
367+
368+
* **`http`**: `http://[username:password@]hostname[:port]`
369+
* **`https`**: `https://[username:password@]hostname[:port]`
370+
* **`socks4`**: `socks4://[username@]hostname[:port]`
371+
* **`socks4a`**: `socks4a://[username@]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)