Mark Kraus
a36d58cf09
Add Simplified multipart/form-data Support to Web Cmdlets Through -Form Parameter ( #5972 )
...
- Adds -Form Parameter to Invoke-WebRequest and Invoke-RestMethod.
- Form Accepts any IDictionary.
- Keys are used as multipart/form-data field names (PSObject unwrapped and ConvertTo<String>(Object)).
- FileInfo values are added as StreamContent with application/octet-stream content type and the FileInfo.Name as the file name.
- Strings are treated as StringContent.
- Singe values are converted to string with ConvertTo<String>(Object) and treated as StringContent
- Top level collections are enumerated and converted as above. Nested collections are treated as a single value and converted accordingly.
- Form is mutually exclusive with -Body and -InFile.
- Per PowerShell-Committee decision, -Form makes no assumptions about the HTTP method used. It can theoretically be used with any method. User will need to manually supply -Method POST to post the form.
- ContentType and content related headers supplied to -Headers will be ignored/cleared as MultipartFormDataContent requires control of these headers.
2018-01-25 09:17:55 +04:00
..
2017-09-29 16:28:15 -07:00
2017-10-18 11:36:25 -07:00
2017-10-31 19:00:41 +04:00
2017-07-21 21:03:49 -07:00
2017-09-29 16:28:15 -07:00
2017-11-22 13:34:05 +04:00
2017-07-21 21:03:49 -07:00
2017-07-21 21:03:49 -07:00
2017-11-14 11:15:18 -08:00
2017-10-25 08:57:05 -07:00
2017-02-15 16:40:51 -08:00
2017-10-21 13:41:46 +04:00
2017-09-11 12:22:10 -07:00
2017-11-03 11:35:09 -07:00
2017-09-27 11:54:22 -07:00
2017-08-16 12:13:07 -07:00
2017-06-09 16:29:59 -07:00
2016-08-30 16:15:10 -07:00
2016-07-27 12:06:51 -07:00
2017-09-29 16:28:15 -07:00
2017-09-29 16:28:15 -07:00
2017-10-26 08:56:07 +04:00
2016-08-11 21:45:20 -07:00
2017-01-16 13:31:14 -08:00
2017-07-31 12:56:41 -07:00
2016-08-25 17:49:32 +00:00
2017-01-16 13:31:14 -08:00
2017-01-16 13:31:14 -08:00
2017-10-26 14:12:19 -07:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2017-10-10 07:19:02 +04:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2017-09-25 15:14:39 -07:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2017-07-21 21:03:49 -07:00
2017-01-16 13:31:14 -08:00
2017-01-16 13:31:14 -08:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2016-07-27 12:06:51 -07:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2017-09-29 16:28:15 -07:00
2017-10-12 14:40:06 -07:00
2017-07-28 11:29:43 -07:00
2017-10-05 16:16:21 -07:00
2017-09-29 16:28:15 -07:00
2017-11-14 11:15:18 -08:00
2016-07-27 12:06:51 -07:00
2017-01-16 13:31:14 -08:00
2017-05-23 10:27:31 -07:00
2017-11-08 13:47:12 -08:00
2017-10-25 08:57:05 -07:00
2017-02-15 16:40:51 -08:00
2017-10-03 07:39:51 +04:00
2017-01-16 13:31:14 -08:00
2017-01-16 13:31:14 -08:00
2017-02-15 16:40:51 -08:00
2017-09-28 17:29:33 -07:00
2017-02-15 16:40:51 -08:00
2017-09-29 16:28:15 -07:00
2017-02-15 16:40:51 -08:00
2017-10-26 14:12:19 -07:00
2017-10-17 17:25:11 -07:00
2017-01-26 14:17:40 -08:00
2017-10-11 17:44:57 +04:00
2017-10-26 14:12:19 -07:00
2017-02-26 16:50:28 -08:00
2017-03-26 21:46:39 -07:00
2017-02-15 16:40:51 -08:00
2017-02-15 16:40:51 -08:00
2017-11-03 12:08:37 +04:00
2016-07-27 12:06:51 -07:00
2017-05-23 10:27:31 -07:00
2016-07-27 12:06:51 -07:00
2017-05-23 10:27:31 -07:00
2017-07-21 21:03:49 -07:00
2017-01-16 13:31:14 -08:00
2017-09-04 19:45:51 -07:00
2017-01-16 13:31:14 -08:00
2017-07-21 21:03:49 -07:00
2017-01-16 13:31:14 -08:00
2018-01-25 07:54:27 +04:00
2017-10-17 17:25:11 -07:00
2017-09-29 16:28:15 -07:00
2017-01-16 13:31:14 -08:00
2017-06-20 09:49:49 -07:00
2017-09-27 07:20:02 +04:00
2017-01-16 13:31:14 -08:00
2016-06-29 12:05:41 -07:00
2017-09-29 16:28:15 -07:00
2017-03-01 12:58:03 -08:00
2017-11-10 18:14:08 +04:00
2016-08-09 18:53:43 -07:00
2017-10-18 09:12:23 -07:00
2017-09-29 16:28:15 -07:00
2016-07-27 12:06:51 -07:00
2018-01-25 09:17:55 +04:00
2017-10-30 09:54:44 -07:00
2017-10-30 09:54:44 -07:00
2017-10-17 17:25:11 -07:00
2017-01-16 13:31:14 -08:00
2017-01-16 13:31:14 -08:00
2017-09-07 10:34:40 -07:00
2017-10-30 09:54:44 -07:00
2017-12-04 13:26:53 -08:00
2017-10-17 17:25:11 -07:00