Returns the value of a known header.
- index
- The index is one of the constants defined in this class as the public fields.
The value of the given header on the HTTP request or null if the header value was not set.
For example to obtain the value of the Content-Length header, you can use:C# Example
string value = worker_request.GetKnownRequestHeader (HttpWorkerRequest.HeaderContentLength);
Namespace: System.Web
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0