René's URL Explorer Experiment


Title: Fixes Invoke-RestMethod -PassThru -Outfile writing to file. by jshigetomi · Pull Request #24086 · PowerShell/PowerShell · GitHub

Open Graph Title: Fixes Invoke-RestMethod -PassThru -Outfile writing to file. by jshigetomi · Pull Request #24086 · PowerShell/PowerShell

X Title: Fixes Invoke-RestMethod -PassThru -Outfile writing to file. by jshigetomi · Pull Request #24086 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: PR Summary Fixes: #15409 When piping the stream is run to the end and the saved file size ends up being 0. I added checks to see if a pipe was called then rewinded the stream. If not piping, just s...

X Description: PR Summary Fixes: #15409 When piping the stream is run to the end and the saved file size ends up being 0. I added checks to see if a pipe was called then rewinded the stream. If not piping, just s...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/24086

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:aacd22d3-69e3-c2a1-a214-92b37eb15314
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9FC4:1DE205:1272E18:1A56E4E:6A5A1C24
html-safe-nonceb8088e1dfd81c0bad0864e14e9a1b80429629be440689f23392dea640591cb18
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkM0OjFERTIwNToxMjcyRTE4OjFBNTZFNEU6NkE1QTFDMjQiLCJ2aXNpdG9yX2lkIjoiMjcwMjU0MzAxMzg0MzQ0MjcyNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac830fdee595d57323d21e14ab1fb575f6f2b3c0d2ecfc29a2f6a2553c525ac788
hovercard-subject-tagpull_request:1986410357
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/24086/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/3138be2d150abf691ad72623d8234917504f70664c9c4095485eec0bb6ac664c/PowerShell/PowerShell/pull/24086
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/3138be2d150abf691ad72623d8234917504f70664c9c4095485eec0bb6ac664c/PowerShell/PowerShell/pull/24086
og:image:altPR Summary Fixes: #15409 When piping the stream is run to the end and the saved file size ends up being 0. I added checks to see if a pipe was called then rewinded the stream. If not piping, just s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamejshigetomi
hostnamegithub.com
expected-hostnamegithub.com
Nonee31742e80bbd077fd5679c13ed870ce4e0c13803a2fa5beaae557b6769de2c8a
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec9fcdbf98c619d1561ed843fa01d9766a32b5cd9
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/24086#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F24086
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F24086
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/24086
Reloadhttps://github.com/PowerShell/PowerShell/pull/24086
Reloadhttps://github.com/PowerShell/PowerShell/pull/24086
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 54.5k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 287 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
daxian-dbwhttps://github.com/daxian-dbw
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
jshigetomi:issue-24047-fixhttps://github.com/jshigetomi/PowerShell/tree/issue-24047-fix
Conversationhttps://github.com/PowerShell/PowerShell/pull/24086
Commits3 (3)https://github.com/PowerShell/PowerShell/pull/24086/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/24086/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/24086/files
Fixes Invoke-RestMethod -PassThru -Outfile writing to file.https://github.com/PowerShell/PowerShell/pull/24086#top
daxian-dbwhttps://github.com/daxian-dbw
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
jshigetomi:issue-24047-fixhttps://github.com/jshigetomi/PowerShell/tree/issue-24047-fix
https://github.com/jshigetomi
jshigetomihttps://github.com/jshigetomi
Jul 25, 2024https://github.com/PowerShell/PowerShell/pull/24086#issue-2428672033
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
#15409https://github.com/PowerShell/PowerShell/issues/15409
#21082https://github.com/PowerShell/PowerShell/issues/21082
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Breaking changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Experimental feature(s) neededhttps://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md
Documentation neededhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure you've added a new test if existing tests do not effectively test the code changedhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting
PowerShell Editor Serviceshttps://github.com/PowerShell/PowerShellEditorServices
PowerShell extensionhttps://github.com/PowerShell/vscode-powershell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
fix for Invoke-RestMethod -PassThru -Outfilehttps://github.com/PowerShell/PowerShell/pull/24086/commits/0f13f452e346211abee02e5dace5665c97a5af46
0f13f45https://github.com/PowerShell/PowerShell/pull/24086/commits/0f13f452e346211abee02e5dace5665c97a5af46
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Jul 25, 2024 https://github.com/PowerShell/PowerShell/pull/24086#pullrequestreview-2198271473
View reviewed changes https://github.com/PowerShell/PowerShell/pull/24086/files/0f13f452e346211abee02e5dace5665c97a5af46
...erShell.Commands.Utility/commands/utility/WebCmdlet/Common/InvokeRestMethodCommand.Common.cshttps://github.com/PowerShell/PowerShell/pull/24086/files/0f13f452e346211abee02e5dace5665c97a5af46#diff-4c55a0b35ba5ce69067caf76b0b94599e0ff304a67add0636bf226fc1cf0fe0f
iSazonovhttps://github.com/iSazonov
Jul 25, 2024https://github.com/PowerShell/PowerShell/pull/24086#discussion_r1690769836
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
PowerShell/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cshttps://github.com/PowerShell/PowerShell/blob/0f13f452e346211abee02e5dace5665c97a5af46/src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/CoreCLR/InvokeWebRequestCommand.CoreClr.cs#L61-L72
0f13f45https://github.com/PowerShell/PowerShell/commit/0f13f452e346211abee02e5dace5665c97a5af46
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
jshigetomihttps://github.com/jshigetomi
Jul 25, 2024https://github.com/PowerShell/PowerShell/pull/24086#discussion_r1691681480
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
July 25, 2024 10:28https://github.com/PowerShell/PowerShell/pull/24086#commits-pushed-eed11bf
Refactored code more similiar to WebRequestObject logichttps://github.com/PowerShell/PowerShell/pull/24086/commits/eed11bf45f7a18bdaa69e2622beff42cd79143e5
eed11bfhttps://github.com/PowerShell/PowerShell/pull/24086/commits/eed11bf45f7a18bdaa69e2622beff42cd79143e5
space after if statementhttps://github.com/PowerShell/PowerShell/pull/24086/commits/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc
80c28bahttps://github.com/PowerShell/PowerShell/pull/24086/commits/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc
https://github.com/jshigetomi
jshigetomihttps://github.com/jshigetomi
July 25, 2024 15:37https://github.com/PowerShell/PowerShell/pull/24086#event-13648462657
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
Aug 1, 2024 https://github.com/PowerShell/PowerShell/pull/24086#pullrequestreview-2213543293
View reviewed changes https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc
...erShell.Commands.Utility/commands/utility/WebCmdlet/Common/InvokeRestMethodCommand.Common.cshttps://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc#diff-4c55a0b35ba5ce69067caf76b0b94599e0ff304a67add0636bf226fc1cf0fe0f
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Waiting on Author https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20on%20Author%22
Waiting on Author https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3A%22Waiting%20on%20Author%22
Aug 1, 2024https://github.com/PowerShell/PowerShell/pull/24086#event-13730068632
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
Aug 5, 2024 https://github.com/PowerShell/PowerShell/pull/24086#pullrequestreview-2219706743
View reviewed changes https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
13e9aachttps://github.com/PowerShell/PowerShell/commit/13e9aac36fc2854f247f3e861114571a2df4dc40
Aug 5, 2024https://github.com/PowerShell/PowerShell/pull/24086#event-13768771258
https://github.com/daxian-dbw
daxian-dbwhttps://github.com/daxian-dbw
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Aug 5, 2024https://github.com/PowerShell/PowerShell/pull/24086#event-13768772249
chrisdent-dehttps://github.com/chrisdent-de
Sep 12, 2024 https://github.com/PowerShell/PowerShell/pull/24086#ref-commit-eaf11fc
https://github.com/jshigetomi
https://github.com/chrisdent-de
Fix Invoke-RestMethod to allow -PassThru and -Outfile work toge…https://github.com/chrisdent-de/PowerShell/commit/eaf11fc64969f6fdb9206ad098651f946a87ff09
eaf11fchttps://github.com/chrisdent-de/PowerShell/commit/eaf11fc64969f6fdb9206ad098651f946a87ff09
PowerShell#24086https://github.com/PowerShell/PowerShell/pull/24086
https://github.com/jshigetomi
jshigetomihttps://github.com/jshigetomi
June 25, 2026 17:32https://github.com/PowerShell/PowerShell/pull/24086#event-27212794363
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F24086
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc
https://github.com/daxian-dbw
daxian-dbw https://github.com/daxian-dbw
https://github.com/PowerShell/PowerShell/pull/24086/files/80c28ba915ac6b964affb7c7bbd1f13dd2aea5dc
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Invoke-RestMethod parameter combination of OutFile/PassThru does not write to file as intended https://github.com/PowerShell/PowerShell/issues/15409
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/24086
https://github.com/jshigetomi
https://github.com/daxian-dbw
https://github.com/iSazonov
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.