Skip to content

Fixes #12682 - Add note about default request headers#12683

Merged
sdwheeler merged 1 commit intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w546520-i12682-irm
Jan 20, 2026
Merged

Fixes #12682 - Add note about default request headers#12683
sdwheeler merged 1 commit intoMicrosoftDocs:mainfrom
sdwheeler:sdw-w546520-i12682-irm

Conversation

@sdwheeler
Copy link
Copy Markdown
Collaborator

@sdwheeler sdwheeler commented Jan 20, 2026

PR Summary

Add note about default request headers

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

Copilot AI review requested due to automatic review settings January 20, 2026 19:52
@learn-build-service-prod
Copy link
Copy Markdown
Contributor

PoliCheck Scan Report

The following report lists PoliCheck issues in PR files. Before you merge the PR, you must fix all severity-1 and severity-2 issues. The AI Review Details column lists suggestions for either removing or replacing the terms. If you find a false positive result, mention it in a PR comment and include this text: #policheck-false-positive. This feedback helps reduce false positives in future scans.

✅ No issues found

More information about PoliCheck

Information: PoliCheck | Severity Guidance | Term
For any questions: Try searching the learn.microsoft.com contributor guides or post your question in the Learn support channel.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds documentation about default HTTP request headers for the Invoke-WebRequest and Invoke-RestMethod cmdlets across multiple PowerShell versions. The documentation clarifies which headers are automatically included in HTTP requests and how users can override them.

Changes:

  • Added documentation notes about default HTTP headers (Accept-Encoding, Host, User-Agent for PS 7.x; Host and User-Agent for PS 5.1)
  • Updated ms.date metadata fields to reflect the current date (01/20/2026)
  • Applied consistent documentation updates across PowerShell versions 5.1, 7.4, 7.5, and 7.6

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated no comments.

Show a summary per file
File Description
reference/7.6/Microsoft.PowerShell.Utility/Invoke-WebRequest.md Added default headers documentation and updated metadata date
reference/7.6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md Added default headers documentation and updated metadata date
reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md Added default headers documentation and updated metadata date
reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md Added default headers documentation and updated metadata date
reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md Added default headers documentation and updated metadata date
reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md Added default headers documentation and updated metadata date
reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md Added default headers documentation (without Accept-Encoding) and updated metadata date
reference/5.1/Microsoft.PowerShell.Utility/Invoke-RestMethod.md Added default headers documentation (without Accept-Encoding) and updated metadata date

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@learn-build-service-prod
Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 5af1660:

✅ Validation status: passed

File Status Preview URL Details
reference/5.1/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-5.1)
reference/5.1/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-5.1)
reference/7.4/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7.4)
reference/7.4/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7.4)
reference/7.5/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7.5)
reference/7.5/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7.5)
reference/7.6/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7.6)
reference/7.6/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7.6)

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit f5c689a into MicrosoftDocs:main Jan 20, 2026
12 checks passed
@sdwheeler sdwheeler deleted the sdw-w546520-i12682-irm branch January 20, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invoke-Restmethod - default headers

2 participants