property Headers: TScWebHeaderCollection;
Description
Specifies a collection of the name/value pairs that make up the HTTP headers.
The Headers collection contains the protocol headers associated with the request. The following table lists the HTTP headers that are not stored in the Headers collection but are set by properties or methods.
Header |
Set by |
---|---|
Accept |
Set by the Accept property. |
Connection |
Set by the Connection property and KeepAlive property. |
Content-Length |
Set by the ContentLength property. |
Content-Type |
Set by the ContentType property. |
Date |
Set by the Date property. |
Expect |
Set by the Expect property. |
From |
Set by the From property. |
Host |
Set by the Host property. |
If-Modified-Since |
Set by the IfModifiedSince property. |
Range |
Set by the Range property. |
Referer |
Set by the Referer property. |
Transfer-Encoding |
Set by the TransferEncoding property. |
Upgrade |
Set by the Upgrade property. |
User-Agent |
Set by the UserAgent property. |
The TScWebHeaderCollection.Add method throws an Exception if you try to set one of these protected headers.
You should not assume that the header values will remain unchanged, because Web servers and caches may change or add headers to a Web request.