You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above example, a user runs `Invoke-RestMethod` to perform a POST request on an intranet website in the user's organization.
121
+
In the above example, a user runs `Invoke-RestMethod` to perform a POST request on an intranet website in the user's organization.
122
122
123
-
First, credentials are prompted for and then stored in `$Cred` and the URL that will be access is defined in `$Url`.
123
+
First, credentials are prompted for and then stored in `$Cred` and the URL that will be access is defined in `$Url`.
124
124
125
125
Next, The `$Body` variable describes the search criteria, specifies CSV as the output mode, and specifies a time period for returned data that starts two days ago and ends one day ago. The body variable specifies values for parameters that apply to the particular REST API with which `Invoke-RestMethod` is communicating.
126
126
@@ -165,12 +165,12 @@ Available Authentication Options:
165
165
- **OAuth**: Requires **-Token**. Will send and RFC 6750 `Authorization: Bearer` header with the supplied token. This is an alias for **Bearer**
166
166
167
167
Supplying **-Authentication** will override any `Authorization` headers supplied to **-Headers** or included in **-WebSession**.
Creates a Response Headers Dictionary and saves it in the value of the specified variable. The the keys of the dictionary will contain the field names of the Response Header returned by the web server and the values will be the respective field values.
580
+
Creates a Response Headers Dictionary and saves it in the value of the specified variable. The the keys of the dictionary will contain the field names of the Response Header returned by the web server and the values will be the respective field values.
Skips certificate validation checks. This includes all validations such as expiration, revocation, trusted root authority, etc.
627
+
Skips certificate validation checks. This includes all validations such as expiration, revocation, trusted root authority, etc.
628
628
629
629
> **Warning**: Using this parameter is not secure and is not recommended. This switch is only intended to be used against known hosts using a self-signed certificate for testing purposes. Use at your own risk.
630
630
@@ -670,7 +670,7 @@ Sets the SSL/TLS protocols that are permissible for the web request. By default
0 commit comments