Skip to content

HttpClient.DefaultProxy environment variable format #4315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 1, 2020

Conversation

kevinoid
Copy link
Contributor

@kevinoid kevinoid commented Jun 1, 2020

Include additional information about the supported formats for HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY environment variables based on the handling in HttpEnvironmentProxy.TryCreate and HttpEnvironmentProxy.GetUriFromString.

The lack of https support (see dotnet/runtime#31113) is specifically noted since it may catch users by surprise (as it did for me) and is difficult to debug due to the lack of diagnostic logging.

Thanks for considering,
Kevin

Include additional information about the supported formats for
HTTP_PROXY, HTTPS_PROXY, and ALL_PROXY environment variables based on
the handling in [HttpEnvironmentProxy.TryCreate] and
[HttpEnvironmentProxy.GetUriFromString].

The lack of https support (see dotnet/runtime#31113) is specifically
noted since it may catch users by surprise (as it did for me) and is
difficult to debug due to the lack of diagnostic logging.

[HttpEnvironmentProxy.GetUriFromString]: https://github.com/dotnet/runtime/blob/v5.0.0-preview.4.20251.6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpEnvironmentProxy.cs#L136
[HttpEnvironmentProxy.TryCreate]: https://github.com/dotnet/runtime/blob/v5.0.0-preview.4.20251.6/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpEnvironmentProxy.Unix.cs#L16

Signed-off-by: Kevin Locke <[email protected]>
@dotnet-bot dotnet-bot added this to the June 2020 milestone Jun 1, 2020
Copy link
Contributor

@gewarren gewarren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple suggestions. Thanks for adding this!

Co-authored-by: Genevieve Warren <[email protected]>
@kevinoid
Copy link
Contributor Author

My pleasure. Thanks for reviewing and for the suggestions @gewarren! They all look good to me and I've committed them to the PR.

@gewarren gewarren requested a review from a team July 14, 2020 17:56
@gewarren
Copy link
Contributor

Link to internal preview.

@carlossanlop carlossanlop merged commit d13b64f into dotnet:master Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants