@@ -32,7 +32,8 @@ The `Invoke-RestMethod` cmdlet sends HTTP and HTTPS requests to Representational
3232
3333PowerShell formats the response based to the data type. For an RSS or ATOM feed, PowerShell returns
3434the Item or Entry XML nodes. For JavaScript Object Notation (JSON) or XML, PowerShell converts, or
35- deserializes, the content into ` [PSCustomObject] ` objects.
35+ deserializes, the content into ` [PSCustomObject] ` objects. Comments aren't permitted in the JSON
36+ data.
3637
3738> [ !NOTE]
3839> When the REST endpoint returns multiple objects, the objects are received as an array. If you pipe
@@ -205,11 +206,11 @@ Accept wildcard characters: False
205206
206207### -Certificate
207208
208- Specifies the client certificate that is used for a secure web request. Enter a variable that
209+ Specifies the client certificate that's used for a secure web request. Enter a variable that
209210contains a certificate or a command or expression that gets the certificate.
210211
211212To find a certificate, use ` Get-PfxCertificate` or use the `Get-ChildItem` cmdlet in the Certificate
212- (`Cert:`) drive. If the certificate is not valid or does not have sufficient authority, the command
213+ (`Cert:`) drive. If the certificate isn't valid or doesn't have sufficient authority, the command
213214fails.
214215
215216` ` ` yaml
@@ -252,7 +253,7 @@ Accept wildcard characters: False
252253Specifies the content type of the web request.
253254
254255If this parameter is omitted and the request method is POST, `Invoke-RestMethod` sets the content
255- type to " application/x-www-form-urlencoded" . Otherwise, the content type is not specified in the
256+ type to ` application/x-www-form-urlencoded` . Otherwise, the content type isn't specified in the
256257call.
257258
258259` ` ` yaml
@@ -305,7 +306,7 @@ Aliases:
305306
306307Required: False
307308Position: Named
308- Default value: KeepAlive
309+ Default value: False
309310Accept pipeline input: False
310311Accept wildcard characters: False
311312` ` `
@@ -453,14 +454,14 @@ Accept wildcard characters: False
453454
454455# ## -ProxyCredential
455456
456- Specifies a user account that has permission to use the proxy server that is specified by the
457+ Specifies a user account that has permission to use the proxy server that's specified by the
457458**Proxy** parameter. The default is the current user.
458459
459- Type a user name, such as "User01" or "Domain01\User01", or enter a **PSCredential** object, such as
460- one generated by the `Get-Credential` cmdlet.
460+ Type a user name, such as "User01" or "Domain01\User01", or enter a **PSCredential** object, such
461+ as one generated by the `Get-Credential` cmdlet.
461462
462- This parameter is valid only when the **Proxy** parameter is also used in the command. You cannot
463- use the **ProxyCredential** and **ProxyUseDefaultCredentials** parameters in the same command.
463+ This parameter is valid only when the **Proxy** parameter is also used in the command. You can't use
464+ the **ProxyCredential** and **ProxyUseDefaultCredentials** parameters in the same command.
464465
465466` ` ` yaml
466467Type: System.Management.Automation.PSCredential
@@ -479,8 +480,8 @@ Accept wildcard characters: False
479480Uses the credentials of the current user to access the proxy server that is specified by the
480481**Proxy** parameter.
481482
482- This parameter is valid only when the **Proxy** parameter is also used in the command. You cannot
483- use the **ProxyCredential** and **ProxyUseDefaultCredentials** parameters in the same command.
483+ This parameter is valid only when the **Proxy** parameter is also used in the command. You can't use
484+ the **ProxyCredential** and **ProxyUseDefaultCredentials** parameters in the same command.
484485
485486` ` ` yaml
486487Type: System.Management.Automation.SwitchParameter
@@ -576,7 +577,7 @@ Accept wildcard characters: False
576577
577578# ## -Uri
578579
579- Specifies the Uniform Resource Identifier (URI) of the Internet resource to which the web request is
580+ Specifies the Uniform Resource Identifier (URI) of the internet resource to which the web request is
580581sent. This parameter supports HTTP, HTTPS, FTP, and FILE values.
581582
582583This parameter is required. The parameter name (**Uri**) is optional.
@@ -630,12 +631,13 @@ Accept wildcard characters: False
630631
631632Specifies a user agent string for the web request.
632633
633- The default user agent is similar to "Mozilla/5.0 (Windows NT; Windows NT 6.1; en-US)
634- WindowsPowerShell/3.0" with slight variations for each operating system and platform.
634+ The default user agent is similar to
635+ ` Mozilla/5.0 (Windows NT 10.0; Microsoft Windows 10.0.15063; en-US) PowerShell/6.0.0` with slight
636+ variations for each operating system and platform.
635637
636- To test a website with the standard user agent string that is used by most Internet browsers, use
637- the properties of the [PSUserAgent](/dotnet/api/microsoft.powershell.commands ) class, such as
638- Chrome, Firefox, Internet Explorer , Opera, and Safari.
638+ To test a website with the standard user agent string that's used by most internet browsers, use
639+ the properties of the [PSUserAgent](xref:Microsoft.PowerShell.Commands.PSUserAgent ) class, such as
640+ Chrome, Firefox, InternetExplorer , Opera, and Safari.
639641
640642` ` ` yaml
641643Type: System.String
@@ -656,17 +658,17 @@ Specifies a web request session. Enter the variable name, including the dollar s
656658To override a value in the web request session, use a cmdlet parameter, such as **UserAgent** or
657659**Credential**. Parameter values take precedence over values in the web request session.
658660
659- Unlike a remote session, the web request session is not a persistent connection. It is an object
660- that contains information about the connection and the request, including cookies, credentials, the
661+ Unlike a remote session, the web request session isn't a persistent connection. It's an object that
662+ contains information about the connection and the request, including cookies, credentials, the
661663maximum redirection value, and the user agent string. You can use it to share state and data among
662664web requests.
663665
664- To create a web request session, enter a variable name ( without a dollar sign) in the value of the
666+ To create a web request session, enter a variable name, without a dollar sign, in the value of the
665667**SessionVariable** parameter of an `Invoke-RestMethod` command. `Invoke-RestMethod` creates the
666668session and saves it in the variable. In subsequent commands, use the variable as the value of the
667669**WebSession** parameter.
668670
669- You cannot use the **SessionVariable** and **WebSession** parameters in the same command.
671+ You can't use the **SessionVariable** and **WebSession** parameters in the same command.
670672
671673` ` ` yaml
672674Type: Microsoft.PowerShell.Commands.WebRequestSession
0 commit comments