Skip to content

Invoke-TlsWebRequest - Auto-detect system proxy#10310

Draft
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-5884-20260404-1730
Draft

Invoke-TlsWebRequest - Auto-detect system proxy#10310
andreasjordan wants to merge 1 commit intodevelopmentfrom
claude/issue-5884-20260404-1730

Conversation

@andreasjordan
Copy link
Copy Markdown
Collaborator

Adds automatic proxy detection to Invoke-TlsWebRequest using [System.Net.WebRequest]::GetSystemWebProxy(). When no proxy is already configured, the system proxy is detected and set with default network credentials. Supports PAC files and is cross-platform. All callers benefit without individual changes.

Fixes #5884

Generated with Claude Code

…xy()

Adds automatic proxy detection to Invoke-TlsWebRequest by calling
[System.Net.WebRequest]::GetSystemWebProxy() when no proxy is already
configured. This provides PAC file support and cross-platform compatibility
(PS7 on Linux/macOS uses HTTP_PROXY/HTTPS_PROXY env vars; PS5.1 on Windows
uses WinINET). All callers benefit without individual changes.

Fixes #5884

(do *Web*)

Co-authored-by: Andreas Jordan <andreasjordan@users.noreply.github.com>
@potatoqualitee
Copy link
Copy Markdown
Member

looking forward to this one 👍🏼

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.

Discussion: Autodetect Proxy Server and set in Invoke-TlsWebRequest?

2 participants