Skip to content

Add -NoProxy parameter to Invoke-WebRequest #3418

@joeyaiello

Description

@joeyaiello

This request came in from UserVoice, and I think it might make sense, but I'm also curious if there's a security implication here (i.e. if an admin sets a proxy globally, could a user override it with this parameter?)

Steps to reproduce

Set up a system-wide proxy and run:

Invoke-WebRequest -NoProxy www.github.com

Expected behavior

The request doesn't go through the system-wide proxy.

Actual behavior

The request does go through the system-wide proxy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Issue-Enhancementthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsWG-Cmdlets-Utilitycmdlets in the Microsoft.PowerShell.Utility module

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions