Commit Graph
86 Commits
Author SHA1 Message Date
CarloToso 86a7262a71 Fix WebCmdlets when -Body is specified but ContentType is not (#23952) 2024-07-01 15:35:23 -07:00
CarloToso 68204ae14f Fix regression -Tail 0 -Wait (#20734) 2024-01-11 11:49:31 +05:00
CarloToso 344ac7b08a New-Guid add -Empty and -InputObject parameters (#20014) 2023-08-28 09:33:55 -07:00
CarloToso e8ce6a5b1f Support Unix-Socket in WebCmdlets (#19343) 2023-07-24 16:44:32 -07:00
CarloToso cb2848c19b Code cleanup for Get-Content to make -Head and -Tail disallow negative values (#19715) 2023-06-21 09:35:18 -07:00
CarloToso 1822ad7373 Add FileNameStar to MultipartFileContent in WebCmdlets (#19467) 2023-06-12 09:55:32 -07:00
CarloToso 0b42d92d4d six files (#19695) 2023-05-25 10:12:42 -07:00
CarloToso 371abc5442 Small cleanup Invoke-RestMethod (#19490) 2023-05-22 09:02:01 +05:00
CarloToso 0b078175da Improve the verbose message of WebCmdlets to show correct HTTP version (#19616) 2023-05-08 16:00:04 -07:00
CarloToso 543b20b4ed Enable more nullable annotations in WebCmdlets (#19359) 2023-04-24 08:38:30 +05:00
CarloToso 3dd943d212 Detect insecure https-to-http redirect only if both URIs are absolute (#19468) 2023-04-12 00:56:24 +00:00
CarloToso fc918bc186 Remove GetResponseObject (#19380) 2023-03-24 09:11:40 +05:00
CarloToso 098be48033 Revert "Remove FormObject.cs and FormObjectCollection.cs (#19383)" (#19387)
This reverts commit 190c99a416.
2023-03-22 22:22:29 +05:00
CarloToso 190c99a416 Remove FormObject.cs and FormObjectCollection.cs (#19383) 2023-03-21 22:59:14 +05:00
CarloToso 5b1dedac61 Allow using a folder path in WebCmdlet's OutFile parameter (#19007) 2023-03-21 13:06:50 +05:00
CarloToso 8f0cd65257 Simplify ContentHelper methods (#19367) 2023-03-20 21:14:49 +05:00
CarloToso 688c7f3689 Initialize Regex lazy in BasicHtmlWebResponseObject (#19361) 2023-03-18 22:06:32 +05:00
CarloToso 69e9b439fd Fix codefactor if part 5 (#19286) 2023-03-16 22:02:42 +05:00
CarloToso e5690cb176 Add nullable annotations in WebRequestSession.cs (#19291) 2023-03-16 17:33:29 +05:00
CarloToso 972641c9b4 Small cleanup in the WebCmdlet code (#19299) 2023-03-13 16:07:23 -07:00
CarloToso 9a2d2afb64 Make -Encoding parameter able to take ANSI encoding in PowerShell (#19298) 2023-03-13 15:05:28 -07:00
CarloToso ff32e01d31 Fix CodeFactor issues in the code base - part 4 (#19270) 2023-03-07 12:18:43 -08:00
CarloToso 6824d489bb Fix using xml -Body in webcmdlets without an encoding (#19281) 2023-03-07 09:35:36 +05:00
CarloToso 4e3f4ca62d Fix codefactor if part 3 (#19269) 2023-03-06 09:59:56 +05:00
CarloToso 0d6b93a23f Fix codefactor if part 2 (#19267) 2023-03-04 22:30:14 +05:00
CarloToso d00407612c Fix codefactor if part 1 (#19266) 2023-03-03 23:51:53 +05:00
CarloToso 8b9544b614 Adjust PUT method behavior to POST one for default content type in WebCmdlets (#19152) 2023-03-02 23:35:31 +05:00
CarloToso 8d8f45e3df Use ArgumentNullException.ThrowIfNull part 2 (#19258) 2023-03-02 22:29:46 +05:00
CarloToso 03396c42cb Improve verbose message in web cmdlets when content length is unknown (#19252) 2023-03-01 18:20:59 -08:00
CarloToso f1ab653d29 Preserve WebSession.MaximumRedirection from changes (#19190) 2023-03-02 00:04:20 +05:00
CarloToso 89f0b0f1bc Remove comment and simplify condition in WebCmdlets (#19251) 2023-03-01 23:01:34 +05:00
CarloToso cf622f869f Take into account ContentType from Headers in WebCmdlets (#19227) 2023-03-01 22:56:05 +05:00
CarloToso d554d06f57 Small style changes (#19241) 2023-02-28 21:31:49 +05:00
CarloToso 476af582d5 Use using variable to reduce the nested level (#19229) 2023-02-27 14:43:15 -08:00
CarloToso c48e5cbcca Use ArgumentException.ThrowIfNullOrEmpty() in more places (#19213) 2023-02-27 14:42:07 -08:00
CarloToso 60b4e9704f Allow to preserve the original HTTP method by adding -PreserveHttpMethodOnRedirect to Web cmdlets (#18894) 2023-02-14 08:40:42 -08:00
CarloToso 69a4d79400 Webcmdlets display an error on https to http redirect (#18595) 2023-02-14 08:32:48 +05:00
CarloToso 22b33c15a2 Revert comment changes in WebRequestPSCmdlet.Common.cs (#19136) 2023-02-12 11:09:20 +05:00
CarloToso 1848740cb7 Small cleanup webcmdlets (#19128) 2023-02-11 20:25:37 +05:00
CarloToso 2f43013df3 Build the relative URI for links from the response in Invoke-WebRequest (#19092) 2023-02-10 21:50:01 +05:00
CarloToso ed68c861d4 Fix redirection for -CustomMethod "POST" in WebCmdlets (#19111) 2023-02-10 16:14:29 +05:00
CarloToso 9b228dcc62 Merge partials in WebRequestPSCmdlet.Common.cs (#19126) 2023-02-10 12:27:56 +05:00
CarloToso c4d688d6e3 Cleanup WebCmdlets comments (#19124) 2023-02-09 16:58:55 +05:00
CarloToso 0f1251ebde Dispose previous response in Webcmdlets (#19117) 2023-02-09 13:38:24 +05:00
CarloToso 359f5c35f1 Improve Invoke-WebRequest xml and json errors format (#18837) 2023-02-09 13:22:04 +05:00
CarloToso 462f825743 Small changes in Webcmdlets (#19109) 2023-02-08 15:54:53 +05:00
CarloToso c87f2a48fd Rework SetRequestContent in WebCmdlets (#18964) 2023-02-01 21:56:49 +05:00
CarloToso dd406b512a Add ValidateNotNullOrEmpty to OutFile and InFile parameters of WebCmdlets (#19044) 2023-02-01 21:45:09 +05:00
CarloToso 3e74bd0ea1 Small cleanup WebCmdlets (#19030) 2023-02-01 21:42:37 +05:00
CarloToso 4c586a7a86 Use interpolated strings 11 (#19002) 2023-01-23 22:36:26 +05:00
CarloToso 33ba57387d Use interpolated strings 12 (#19003) 2023-01-23 22:35:20 +05:00
CarloToso 099cbc1727 WebCmdlets parse XML declaration to get encoding value, if present. (#18748) 2023-01-21 22:26:39 +05:00
CarloToso 1b3b359bcb Use interpolated strings 1 (#18977) 2023-01-21 21:32:26 +05:00
CarloToso c156c9cadb Use interpolated strings 4 (#18980) 2023-01-21 21:27:21 +05:00
CarloToso ebed597725 Use interpolated strings 5b (#18996) 2023-01-21 17:59:18 +05:00
CarloToso 0ee317a157 Use interpolated strings 3 (#18979) 2023-01-21 17:56:57 +05:00
CarloToso 9cab34b7a7 Use interpolated strings 5c (#18997) 2023-01-21 17:49:12 +05:00
CarloToso b85fe99f5a Use interpolated strings 2 (#18978) 2023-01-20 22:22:10 +05:00
CarloToso e815e57601 Use interpolated strings 6 (#18983) 2023-01-20 16:59:55 +05:00
CarloToso 740c62a5bf Use interpolated strings 10 (#18992) 2023-01-20 15:38:20 +05:00
CarloToso 64d82f812d Use interpolated strings 9 (#18993) 2023-01-20 15:26:43 +05:00
CarloToso f5627538e1 Use interpolated strings 7 (#18985) 2023-01-20 12:21:19 +05:00
CarloToso a01fb37243 Use interpolated strings 8 (#18988) 2023-01-20 09:50:51 +05:00
CarloToso 3fb4bb277b Cleanup StreamHelper.cs, WebRequestPSCmdlet.Common.cs and InvokeRestMethodCommand.Common.cs (#18950) 2023-01-17 15:59:52 +05:00
CarloToso 2df06f2e20 Small cleanup common code of webcmdlets (#18946) 2023-01-16 16:29:27 +05:00
CarloToso 9ffa9a2276 HttpKnownHeaderNames update headers list (#18947) 2023-01-16 16:08:52 +05:00
CarloToso 282fc5fc08 Fix bug with managing redirection and keepAuthorization in Web cmdlets (#18902) 2023-01-13 18:31:03 +05:00
CarloToso f018beedff Add tests for Allowinsecureredirect parameter in Web cmdlets (#18939) 2023-01-13 17:37:55 +05:00
CarloToso ca4b6162f4 Add AllowInsecureRedirect switch to Web cmdlets (#18546) 2023-01-12 17:08:28 +05:00
CarloToso 292323c210 Simplification of GetHttpMethod and httpMethod in WebCmdlets (#18846) 2023-01-12 15:45:54 +05:00
CarloToso 465165fd97 Invoke-RestMethod -FollowRelLink fix links containing commas (#18829) 2023-01-11 21:39:04 +05:00
CarloToso 31af38c22a Create test to check if WebCmdlets decompress brotli-encoded data (#18905) 2023-01-10 08:07:00 +05:00
CarloToso 078866987b Requires.NotNull-->ArgumentNullException.ThrowIfNull (#18820) 2023-01-07 20:11:01 +05:00
CarloToso 30bc32a083 Cleanup InvokeRestMethodCommand.Common.cs (#18861) 2023-01-06 22:47:21 +05:00
CarloToso a581e36419 Add StatusCode to HttpResponseException (#18842) 2022-12-24 18:09:26 +05:00
CarloToso b48943ce31 Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() 2 (#18792) 2022-12-16 16:46:45 +05:00
CarloToso bcb0a9425d Cleanup webrequestpscmdlet.common.cs (#18596) 2022-12-15 22:55:50 +05:00
CarloToso 2ddc63f151 Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() (#18784) 2022-12-14 18:30:33 +05:00
CarloToso b7096e8cb6 WebCmdlets get Retry-After from headers if StatusCode is 429 (#18717) 2022-12-14 14:20:53 +05:00
CarloToso 9cc914e1e5 Cleanup webresponseobject.common (#18785) 2022-12-14 09:51:15 +05:00
CarloToso 88077bd985 InvokeRestMethodCommand.Common cleanup and merge partials (#18736) 2022-12-14 09:48:13 +05:00
CarloToso c3a080caf9 WebResponseObject.Common merge partials atomic commits (#18703) 2022-12-13 18:18:16 +05:00
CarloToso 83d3b0e12b Webcmdlets add 308 to redirect codes and small cleanup (#18536) 2022-11-22 22:01:26 +05:00
CarloToso 489e316151 Webcmdlets set default charset encoding to UTF8 (#18219) 2022-11-02 22:34:09 +05:00
CarloToso 215ac2f0f4 Code cleanup in ContentHelper.Common.cs (#18288) 2022-10-24 14:52:09 -07:00
CarloToso 223d9a4d14 Small cleanup of the stub code (#18301) 2022-10-17 14:51:34 -07:00