Skip to content

Comments

(GH-9093) Clarify web cmdlet header validation#9100

Merged
sdwheeler merged 1 commit intoMicrosoftDocs:mainfrom
michaeltlombardi:gh-9093/main/strictheader-example
Aug 8, 2022
Merged

(GH-9093) Clarify web cmdlet header validation#9100
sdwheeler merged 1 commit intoMicrosoftDocs:mainfrom
michaeltlombardi:gh-9093/main/strictheader-example

Conversation

@michaeltlombardi
Copy link
Contributor

PR Summary

Prior to this change, the Invoke-WebRequest and Invoke-RestMethod
cmdlets in 7.0.0 and higher included the SkipHeaderValidation
parameter but not a specific example showing its use.

This change adds a new example for both cmdlets to show:

  • How the cmdlets behave when an invalidly formatted value is specified
    for a header that has validation
  • How the cmdlets behave when the value is valid
  • How the SkipHeaderValidation parameter allows users to use values
    that would normally fail validation.

This change also updates the formatting for the updated files to ease
future maintenance.

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 contributors guide.
  • Style: This PR adheres to the style guide.

@opbld32

This comment was marked as outdated.

@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from cd04059 to 6a1a554 Compare August 8, 2022 18:00
@opbld31

This comment was marked as outdated.

@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from 6a1a554 to fa6270e Compare August 8, 2022 18:13
@opbld31

This comment was marked as outdated.

@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from fa6270e to 83af4df Compare August 8, 2022 18:24
@opbld30

This comment was marked as outdated.

@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from 83af4df to dcf2254 Compare August 8, 2022 18:27
@opbld33

This comment was marked as outdated.

@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from dcf2254 to 171817d Compare August 8, 2022 18:29
@opbld32
Copy link

opbld32 commented Aug 8, 2022

Docs Build status updates of commit 171817d:

✅ Validation status: passed

File Status Preview URL Details
reference/7.0/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7)
reference/7.0/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from 171817d to 2b0b404 Compare August 8, 2022 19:04
@opbld33

This comment was marked as outdated.

Prior to this change, the `Invoke-WebRequest` and `Invoke-RestMethod`
cmdlets in 7.0.0 and higher included the **SkipHeaderValidation**
parameter but not a specific example showing its use.

This change adds a new example for both cmdlets to show:

- How the cmdlets behave when an invalidly formatted value is specified
  for a header that has validation
- How the cmdlets behave when the value is valid
- How the **SkipHeaderValidation** parameter allows users to use values
  that would normally fail validation.

This change also updates the formatting for the updated files to ease
future maintenance.
@michaeltlombardi michaeltlombardi force-pushed the gh-9093/main/strictheader-example branch from 2b0b404 to e69b544 Compare August 8, 2022 19:35
@opbld31
Copy link

opbld31 commented Aug 8, 2022

Docs Build status updates of commit e69b544:

✅ Validation status: passed

File Status Preview URL Details
reference/7.0/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7)
reference/7.0/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7)
reference/7.2/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7.2)
reference/7.2/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7.2)
reference/7.3/Microsoft.PowerShell.Utility/Invoke-RestMethod.md ✅Succeeded View (powershell-7.3)
reference/7.3/Microsoft.PowerShell.Utility/Invoke-WebRequest.md ✅Succeeded View (powershell-7.3)

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@michaeltlombardi michaeltlombardi marked this pull request as ready for review August 8, 2022 19:41
@sdwheeler sdwheeler merged commit 63b5467 into MicrosoftDocs:main Aug 8, 2022
@michaeltlombardi michaeltlombardi deleted the gh-9093/main/strictheader-example branch August 8, 2022 21:16
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.

6 participants