Gets the HTTP headers for a website or directory under a website.
Get-IisHttpHeader [-SiteName] <String> [[-VirtualPath] <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:
Beginning with Carbon 2.0.1, this function is available only if IIS is installed.
Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SiteName | String | The name of the website whose headers to return. |
true | false | |
VirtualPath | String | The optional path under |
false | false | |
Name | String | The name of the HTTP header to return. Optional. If not given, all headers are returned. Wildcards supported. |
false | false | * |
Carbon.Iis.HttpHeader.
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.