-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Labels
area-utilityArea - Microsoft.PowerShell.Utility moduleArea - Microsoft.PowerShell.Utility moduleissue-doc-ideaIssue - request for new contentIssue - request for new content
Milestone
Description
Prerequisites
- Existing Issue: Search the existing issues for this repository. If there is an issue that fits your needs do not file a new one. Subscribe, react, or comment on that issue instead.
- Descriptive Title: Write the title for this issue as a short synopsis. If possible, provide context. For example, "Document new
Get-Foocmdlet" instead of "New cmdlet."
Summary
WebCmdlets if -ContentType is null and -Method is PUT the content type is set to application/x-www-form-urlencoded
Details
The documentation should be updated from:
If this parameter is omitted and the request method is POST, Invoke-WebRequest sets the content type to application/x-www-form-urlencoded. Otherwise, the content type isn't specified in the call.
to this:
If this parameter is omitted and the request method is POST or PUT, Invoke-WebRequest sets the content type to application/x-www-form-urlencoded. Otherwise, the content type isn't specified in the call.
Articles
- https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-webrequest
- https://learn.microsoft.com/powershell/module/microsoft.powershell.utility/invoke-restmethod
Related Source Pull Requests
Related Source Issues
Metadata
Metadata
Assignees
Labels
area-utilityArea - Microsoft.PowerShell.Utility moduleArea - Microsoft.PowerShell.Utility moduleissue-doc-ideaIssue - request for new contentIssue - request for new content