Gets the request/response headers for a url.
Get-WebHeaders `
[-Url <String>] `
[-UserAgent <String>] `
[-IgnoredArguments <Object[]>] [<CommonParameters>]
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.
Not recommended for use in package scripts.
None
None
None
This is the url to get a request/response from.
Property | Value |
---|---|
Aliases | |
Required? | false |
Position? | 1 |
Default Value | |
Accept Pipeline Input? | false |
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 |
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 |
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 .
- [[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