Aditya Patwardhan
bd8030de27
Added a missing ConfigureAwait(false) call ( #20606 ) ( #20622 )
2023-11-01 13:38:24 -07:00
James Truher [MSFT]
046301b716
Additional test hardening for tests which fail in release pass. ( #20093 )
2023-08-16 11:28:59 -07:00
CarloToso
e8ce6a5b1f
Support Unix-Socket in WebCmdlets ( #19343 )
2023-07-24 16:44:32 -07:00
Sean Wheeler
5595072568
Change docs.microsoft.com to learn.microsoft.com ( #19994 )
2023-07-17 15:54:17 -07:00
stevenebutler
d614858550
WebCmdlets: Rename -TimeoutSec to -ConnectionTimeoutSeconds (with alias) and add -OperationTimeoutSeconds ( #19558 )
2023-06-19 15:07:16 -07:00
CarloToso
1822ad7373
Add FileNameStar to MultipartFileContent in WebCmdlets ( #19467 )
2023-06-12 09:55:32 -07:00
mkht
9502931493
Fix HTTP status from 409 to 429 for WebCmdlets to get retry interval from Retry-After header. ( #19622 )
2023-05-08 15:57:27 -07:00
stevenebutler
319c9faf57
Improve reliability of the Ctrl+c tests for WebCmdlets ( #19532 )
2023-04-20 09:40:01 -07:00
CarloToso
3dd943d212
Detect insecure https-to-http redirect only if both URIs are absolute ( #19468 )
2023-04-12 00:56:24 +00:00
stevenebutler
17fb783736
Support CTRL-C when reading data and connection hangs for Invoke-RestMethod and Invoke-WebRequest ( #19330 )
2023-04-03 23:08:35 +00:00
CarloToso
5b1dedac61
Allow using a folder path in WebCmdlet's OutFile parameter ( #19007 )
2023-03-21 13:06:50 +05:00
stevenebutler
9e341148f4
Support HTTP persistent connections in Web Cmdlets ( #19249 )
2023-03-07 09:42:08 -08:00
CarloToso
6824d489bb
Fix using xml -Body in webcmdlets without an encoding ( #19281 )
2023-03-07 09:35:36 +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
f1ab653d29
Preserve WebSession.MaximumRedirection from changes ( #19190 )
2023-03-02 00:04:20 +05:00
CarloToso
cf622f869f
Take into account ContentType from Headers in WebCmdlets ( #19227 )
2023-03-01 22:56:05 +05: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
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
359f5c35f1
Improve Invoke-WebRequest xml and json errors format ( #18837 )
2023-02-09 13:22:04 +05:00
CarloToso
dd406b512a
Add ValidateNotNullOrEmpty to OutFile and InFile parameters of WebCmdlets ( #19044 )
2023-02-01 21:45:09 +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
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
Travis Plunk
9c55989a2e
Mark charset test as pending ( #18511 )
2022-11-09 23:04:21 +00:00
CarloToso
489e316151
Webcmdlets set default charset encoding to UTF8 ( #18219 )
2022-11-02 22:34:09 +05:00
Ilya
3a506b9692
Fix decompression in web cmdlets ( #17955 )
2022-10-04 09:33:37 -07:00
github-actions[bot]
38909f7ee5
Update .NET SDK version from 7.0.100-preview.2.22153.17 to 7.0.100-preview.4.22252.9 ( #17061 )
2022-05-11 18:27:51 -07:00
Aditya Patwardhan
9fc0e80fb7
Update dotnetmetadata.json to accept .NET 7 preview 3 builds ( #17063 )
2022-03-25 16:15:16 -07:00
Steve Lee
7a2b44523b
Fix web cmdlets so that an empty Get does not include a content-length header ( #16587 )
2022-01-03 11:20:33 -08:00
Maksim Ivanyuk
674ef888a2
Add -HttpVersion parameter to web cmdlets ( #15853 )
2021-11-02 16:53:36 -07:00
Austin Farmer
107fd7ab1f
Add support to web cmdlets for open-ended input tags ( #16193 )
2021-11-02 09:39:28 -07:00
Steve Lee
c3fa70380c
Fix webcmdlets to properly construct URI from body when using -NoProxy ( #14673 )
2021-02-05 08:06:04 +05:00
Dongbo Wang
10237bdeb3
Update PowerShell to build against dotnet 5.0-RC.1 ( #13643 )
2020-09-23 14:04:01 -07:00
Ilya
81d5a86747
Add support for Tls 1.3 in Web cmdlets ( #13409 )
2020-09-02 10:18:15 -07:00
Ilya
16c1a369b3
Make -OutFile param in web cmdlets to work like -LiteralPath ( #11701 )
2020-05-20 15:17:02 -07:00
xtqqczze
f4382202ae
Use correct casing for cmdlet name and cmdlet parameter name in *.ps1 files ( #12584 )
2020-05-07 17:00:30 +05:00
Steve Lee
b7cb335f03
Update copyright notice to latest guidance ( #12190 )
2020-03-24 11:08:37 -07:00
Joel Sallow (/u/ta11ow)
f8fb77052f
Fix <img /> detection regex in web cmdlets ( #12099 )
2020-03-24 10:51:55 -07:00
Steve Lee
495dea0783
Move to .NET 5 preview.1 ( #12140 )
2020-03-19 11:27:13 -07:00
xtqqczze
920b671fb4
Unify pester test syntax for the arguments of -BeOfType ( #11558 )
2020-01-24 11:00:37 -08:00
James Truher [MSFT]
1484749f04
Test fixes for failing tests ( #11541 )
2020-01-14 08:40:50 -08:00
xtqqczze
4f5bb46268
Remove BOM, insert newline at EOF
2020-01-13 18:36:47 +00:00
xtqqczze
743983390e
Update pester syntax to v4 ( #11544 )
...
* Capitalize 'Should' command and fix whitespace
```powershell
$_ -ireplace '\s?\|\s?should\b',' | Should'
```
* Capitalise and apply hyphen to 'Not' parameter
```powershell
$_ -ireplace '(\| Should) not\b','$1 -Not'
```
* Capitalise and apply hyphen to 'Be' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?be\b','$1 -Be'
```
* Capitalise and apply hyphen to 'BeExactly' parameter
$_ -ireplace '(\| Should(?: -Not)?) -?beexactly\b','$1 -BeExactly'
* Capitalise and apply hyphen to 'BeGreaterThan' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -?begreaterthan\b','$1 -BeGreaterThan'
```
* Use 'BeTrue' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?true\b','$1 -BeTrue'
```
* Use 'BeFalse' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?) -Be\s\$?false\b','$1 -BeFalse'
```
* Capitalise and apply hyphen to 'Match' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?match\b','$1 -Match'
```
* Capitalise and apply hyphen to 'Throw' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?throw\b','$1 -Throw'
```
* Capitalise and apply hyphen to 'BeNullOrEmpty' parameter
```powershell
$_ -ireplace '(\| Should(?: -Not)?)\s-?benullorempty\b','$1 -BeNullOrEmpty'
```
* Capitalise 'Because' parameter
```powershell
$_ -ireplace '\s-because\b',' -Because'
```
* Fix 'BeNullOrEmpty'
2020-01-11 20:41:59 +05:00
Ilya
e8d472b65b
Ignore headers with null values in web cmdlets ( #11424 )
2020-01-07 12:25:30 -08:00
spongemike2
1376d310bb
Make web cmdlets skip processing the content headers with a null or empty value for backward compatibility ( #11421 )
2020-01-06 12:11:55 -08:00
Vincent Damewood
04a1fc3b74
Allow Web Cmdlets to Ignore HTTP Error Statuses ( #10466 )
...
* Add -SkipHttpErrorCheck to web request cmdlets
The -SkipHttpErrorCheck flag causes web request cmdlets
(Invoke-WebRequest and Invoke-RestMethod) to ignore HTTP statuses that
are error statuses and treat them as successful requests. This allows
users to handle the responses using their own error handler and gives
them access to the full, unmodified response body and headers.
* Add -ResponseStatusVariable to Invoke-RestMethod
This allows the user to specify a variable to set to the integer value
of the respons's status code, Analogous to using
-ResponseHeadersVariable to retrieve the headers of the response. This
can be used to distinguish error messages from success messages when
used with -SkipHttpErrorCheck.
* Fix coding-style error
The summary for the SkipHttpErrorCheck property didn't conform
to style guidelines. This changes the summary to start with
"Gets or sets".
* Add tests for -SkipHttpErrorCheck
This flag supresses terminating errors on web cmdlets.
The tests are written to check that it properly
supressed the errors.
* Add test for -StatusCodeVariable
Th -StatusCodeVariable parameter specifies an output
variable for the status code with Invoke-RestMethod.
This test makes sure it functions properly.
* Fix typos and style for -SkipHttpErrorCheck tests
Variables had different cases from each other and some parameter
names were lower case.
* Fix typos and style for -StatusCodeVariable test
Variables had different cases from each other and some parameter
names were lower case.
* Add failure tests when missing -SkipHttpErrorCheck
These tests ensure that Web Cmdlets fail when -SkipHttpErrorCheck
is missing.
* Clean up tests for -SkipHttpErrorCheck
Per discussion on the pull requests. This commit fixes up
style problems with the tests for -SkipHttpErrorCheck.
* Add more status tests for -StatusCodeVariable
Previously, the -StatusCodeVariable flag in Invoke-RestMethod
only had tests for 200 status. This commit adds tests for 404
and 500 statuses and removes -SkipHttpErrorCheck from the 200
check.
* Fix response body in -StatusCodeVariable test
The test was copy/pastes from the 200 status test. The body
indicated success. This commit fixes that so it is also an
error indicator.
2019-11-07 12:38:24 -08:00
Travis Plunk
c64a28eaf1
Merged PR 5767: Fix RegEx DoS issues
...
Fix RegEx DoS issues
2019-07-15 19:52:01 +00:00