Skip to content

PUT default content type application/x-www-form-urlencoded #9863

@CarloToso

Description

@CarloToso

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-Foo cmdlet" 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

Related Source Pull Requests

Related Source Issues

Metadata

Metadata

Labels

area-utilityArea - Microsoft.PowerShell.Utility moduleissue-doc-ideaIssue - request for new content

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions