Improve verbose and debug logging level messaging in web cmdlets by JustinGrote · Pull Request #25510 · PowerShell/PowerShell
marked this pull request as draft
JustinGrote
changed the title
WebRequest Cmdlets: Improve Verbose and Debug Logging Levels and include Request Content
WebRequest Cmdlets: Improve Verbose and Debug Logging Level Messaging
iSazonov
added
the
CL-General
label
May 7, 2025All retries are done with recursive GetResponse added by PowerShell#19229. The do loop was a leftover from the old way of doing things, it never actually gets triggered, and redirects previously had internal GetResponse that bypassed it, but when I unified the logic to unify the verbose messages, it now follows the flow "properly" and got stuck in the do/while instead of return the response, causing it to reuse the request and trigger an exception.
Fixes test "Invoke-WebRequest -PassThru -OutFile -Verbose File Name reflects the downloaded file name"
iSazonov
changed the title
WebRequest Cmdlets: Improve Verbose and Debug Logging Level Messaging
Improve verbose and debug logging level messaging in web cmdlets
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters