Gets the HTTP headers for a website or directory under a website.
Get-IisHttpHeader [-SiteName] <String> [[-Path] <String>] [[-Name] <String>] [<CommonParameters>]
For each custom HTTP header defined under a website and/or a sub-directory under a website, returns a Carbon.Iis.HttpHeader
object. This object has two properties:
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SiteName | String | The name of the website whose headers to return. | true | false | |
Path | String | The optional path under SiteName whose headers to return.
|
false | false | |
Name | String | The name of the HTTP header to return. Optional. If not given, all headers are returned. Wildcards supported. | false | false | * |
Get-IisHttpHeader -SiteName SopwithCamel
Returns the HTTP headers for the SopwithCamel
website.
Get-IisHttpHeader -SiteName SopwithCamel -Path Engine
Returns the HTTP headers for the Engine
directory under the SopwithCamel
website.
Get-IisHttpHeader -SiteName SopwithCambel -Name 'X-*'
Returns all HTTP headers which match the X-*
wildcard.