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
Document New -Form Parameter for Web Cmdlets (#2233)
* Add example to Invoke-RestMethod
* Document -Form Feature in Invoke-RestMethod
* Add Simplified Mulitpart/Form-Data example to Invoke-WebRequest
* Document -Form Feature on Invoke-WebRequest
Some REST APIs support pagination via Relation Links per [RFC5988](https://tools.ietf.org/html/rfc5988#page-6). Instead of parsing the header to get the URL for the next page, you can have the cmdlet do this for you. This example returns the first two pages of issues from the PowerShell GitHub repository
138
138
139
+
### Example 4: Simplified Multipart/Form-Data Submission
This example uses the `Invoke-WebRequest` cmdlet upload a file as a `multipart/form-data` submission. The file `c:\document.txt` will be submitted as the form field `document` with the `Content-Type` of `text/plain`.
153
153
154
+
### Example 5: Simplified Multipart/Form-Data Submission
0 commit comments