Invoke-WebRequest needs SupportsShouldProcess #23806
Labels
Issue-Enhancement
the issue is more of a feature request than a bug
Needs-Triage
The issue is new and needs to be triaged by a work group.
WG-Cmdlets-Utility
cmdlets in the Microsoft.PowerShell.Utility module
Summary of the new feature / enhancement
Because
Invoke-WebRequest
might change the state of a system, it should support-WhatIf`` and ``Confirm
. Even if we aren't concerned about changing the state of a web item via aPost
orPatch
operation,Invoke-WebRequest
can create local files which we should process with-WhatIf
.Proposed technical implementation details (optional)
Cmdlet binding should add
SupportsShouldProcess
and messaging should be very clear about what operation is being handled.-WhatIf
should only be applied to any operation other than a GET and those that involve modifying the local filesystem.The text was updated successfully, but these errors were encountered: