Skip to content
This repository has been archived by the owner on Dec 15, 2020. It is now read-only.

Latest commit

 

History

History
90 lines (60 loc) · 2.59 KB

HelpersGetWebHeaders.md

File metadata and controls

90 lines (60 loc) · 2.59 KB

Get-WebHeaders

Gets the request/response headers for a url.

Syntax

Get-WebHeaders `
  [-Url <String>] `
  [-UserAgent <String>] `
  [-IgnoredArguments <Object[]>] [<CommonParameters>]

Description

This is a low-level function that is used by Chocolatey to get the headers for a request/response to better help when getting and validating internet resources.

Notes

Not recommended for use in package scripts.

Aliases

None

Inputs

None

Outputs

None

Parameters

-Url [<String>]

This is the url to get a request/response from.

Property Value
Aliases
Required? false
Position? 1
Default Value
Accept Pipeline Input? false

-UserAgent [<String>]

The user agent to use as part of the request. Defaults to 'chocolatey command line'.

Property Value
Aliases
Required? false
Position? 2
Default Value chocolatey command line
Accept Pipeline Input? false

-IgnoredArguments [<Object[]>]

Allows splatting with arguments that do not apply. Do not use directly.

Property Value
Aliases
Required? false
Position? named
Default Value
Accept Pipeline Input? false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters http://go.microsoft.com/fwlink/p/?LinkID=113216 .

Links

  • [[Get-ChocolateyWebFile|HelpersGetChocolateyWebFile]]
  • [[Get-WebFileName|HelpersGetWebFileName]]
  • [[Get-WebFile|HelpersGetWebFile]]

[[Function Reference|HelpersReference]]

NOTE: This documentation has been automatically generated from Import-Module "$env:ChocolateyInstall\helpers\chocolateyInstaller.psm1" -Force; Get-Help Get-WebHeaders -Full.

View the source for Get-WebHeaders