Skip to content

Commit 22e26b7

Browse files
UsernameFailSean Wheeler
authored andcommitted
Remove SkipCertificateCheck flag (#2162)
1 parent 6f05dca commit 22e26b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

reference/6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ $Body = @{
115115
earliest_time = "-2d@d"
116116
latest_time = "-1d@d"
117117
}
118-
Invoke-RestMethod -Method 'Post' -Uri $url -Credential $Cred -Body $body -SkipCertificateCheck -OutFile output.csv
118+
Invoke-RestMethod -Method 'Post' -Uri $url -Credential $Cred -Body $body -OutFile output.csv
119119
```
120120

121121
In the above example, a user runs `Invoke-RestMethod` to perform a POST request on an intranet website in the user's organization.
@@ -874,4 +874,4 @@ Some features may not be available on all platforms.
874874

875875
[ConvertFrom-Json](ConvertFrom-Json.md)
876876

877-
[Invoke-WebRequest](Invoke-WebRequest.md)
877+
[Invoke-WebRequest](Invoke-WebRequest.md)

0 commit comments

Comments
 (0)