[Top] [Prev] [Next] [Last]
|
|
Appendix AHTTP Metainformation
- General
General metainformation is not specifically related to the client, server, or HTTP.
- Request
- Response
- Entity
Entity metainformation describes the data that follows the header.
- Proxy Security
Proxy security metainformation provides information about SSL-secured proxy connections.
General Headers
Cache-Control
- Syntax: Cache-Control: directive1 [directive2 directive3 ...]
- Context: general
The following are the possible request directives:
The following are the possible response directives:
Connection
- Syntax: Connection: option1 [option2 ...]
- Context: general
Connection: close
Date
- Syntax: Date: date time
- Context: general
Thu, 14 November 1996 09:46:03 GMT
However, you can also use the older RFC 850 and ANSI C formats for backward compatability:
Thursday, 14-Nov-96 09:46:03 GMT
Thu Nov 6 09:46:03 1996
MIME-Version
- Syntax: MIME-Version: version
- Context: general
Pragma
- Syntax: Pragma: no-cache
- Context: general
Transfer-Encoding
- Syntax: Transfer-Encoding: type
- Context: general
Upgrade
- Syntax: Upgrade: protocol/version
- Context: general
Via
- Syntax: Via: protocol host ["comment"] ...
- Context: general
Client Request Headers
Clients include the headers listed in this section when transmitting requests to servers.
Accept
- Syntax: Accept: type/subtype1[; q=qvalue][, type/subtype2[; q=qvalue] ...]
- Context: request
Accept-Charset
- Syntax: Accept-Charset: char-set1[; q=qvalue][, char-set2[;q=qvalue]...]
- Context: request
Accept-Encoding
- Syntax: Accept-Encoding: encoding-type1[, encoding-type2 ...]
- Context: request
Accept-Language
- Syntax: Accept-Language: language1[; q=qvalue][, language2
[; q=qvalue] ...]
- Context: request
Authorization
- Syntax: Authorization: scheme credentials
- Context: request
Cookie
- Syntax: Cookie: name=value
- Context: request
From
- Syntax: From: email-address
- Context: request
The From header specifies the email address of the user sending the request.
Host
- Syntax: Host: hostname[:port]
- Context: request
If-Modified-Since
- Syntax: If-Modified-Since: date
- Context: request
If-Match
- Syntax: If-Match: entity-tag
- Context: request
If-None-Match
- Syntax: If-None-Match: entity-tag
- Context: request
If-Range
- Syntax: If-Range: entity-tag|date
- Context: request
This is a conditional header that can only be used in conjunction with a Range header. The value can be either an entity tag or a date, indicating a partial entity that the client has already received.
If-Unmodified-Since
- Syntax: If-Unmodified-Since: date
- Context: request
Max-Forwards
- Syntax: Max-Forwards: n
- Context: request
This header limits the number of hops between the client and server to n.
Proxy-Authorization
- Syntax: Proxy-Authorization: credentials
- Context: request
When Stronghold acts as a proxy server, clients use this header instead of the Authorization header.
Range
- Syntax: Range: bytes=n-m[,n-m ...]
- Context: request
Referer
- Syntax: Referer: URL
- Context: request
User-Agent
- Syntax: User-Agent: string
- Context: request
Server Response Headers
Stronghold uses the headers listed in this section to respond to client requests.
Accept-Ranges
- Syntax: Accept-Ranges: bytes|none
- Context: response
When a client requests a segment of a document using the Range header, Stronghold responds with Accept-Ranges to indicate a successful range request.
Age
- Syntax: Age: seconds
- Context: response
Stronghold can use this header to specify the age of the message body in seconds.
Proxy-Authenticate
- Syntax: Proxy-Authenticate: scheme realm
- Context: response
When Stronghold responds with the 407 (Proxy Authentication Required) status code, is also sends this header to indicate the authentication scheme (such as basic or digest) and the authentication realm (set with the AuthName directive).
Public
- Syntax: Public: method1[,method2,method3 ...]
- Context: response
Public indicates one or more request methods that Stronghold supports. To indicate methods supported only for an individual URI, use the Allow header instead.
Retry-After
- Syntax: Retry-After: date|seconds
- Context: response
When Stronghold uses the 503 (Service Unavailable) status code, it also sends this header to indicate when the client should resubmit the request. The value can be either a date (in a format specified by the Date header) or an integer indicating a period of seconds.
Server
- Syntax: Server: string
- Context: response
Server: Stronghold/2.4.1 Apache/1.3.2
Set-Cookie
- Syntax: Set-Cookie: name=value[; expires=date; path=pathname; domain=domain; secure]
- Context: response
Vary
- Syntax: Vary: *|headers
- Context: response
Warning
- Syntax: Warning: code host[:port] "string"
- Context: response
Code String 10 Response is stale 11 Revalidation failed 12 Disconnected operation 13 Heuristic expiration 14 Transformation applied 99 Miscellaneous warning (or an arbitrary string) Host is the hostname of the server or one of its virtual hosts, with an optional port number.
WWW-Authenticate
- Syntax: WWW-Authenticate: scheme realm
- Context: response
When Stronghold responds with the 401 (Unauthorized) status code, it also sends this header to indicate the authentication scheme (such as basic or digest) and the realm (set with the AuthName directive), so that the client can return the appropriate username and password.
Entity Headers
Allow
- Syntax: Allow: method1[,method2,method3 ...]
- Context: entity
Content-Base
- Syntax: Content-Base: URI
- Context: entity
Content-Base specifies an absolute URI to use as a base for all relative URLs.
Content-Encoding
- Syntax: Content-Encoding: encoding-type[,encoding-type,encoding-type ...]
- Context: entity
- "gzip"
- "x-gzip"
- "compress"
- "x-compress"
Content-Language
- Syntax: Content-Language: language
- Context: entity
Content-Length
- Syntax: Content-Length: bytes
- Context: entity
Content-Location
- Syntax: Content-Location: URI
- Context: entity
Content-MD5
- Syntax: Content-MD5: digest
- Context: entity
Content-Range
- Syntax: Content-Range: bytes n-m/length
- Context: entity
Content-Transfer-Encoding
- Syntax: Content-Transfer-Encoding: scheme
- Context: entity
Content-Type
- Syntax: Content-Type: type/subtype
- Context: entity
ETag
- Syntax: ETag: entity-tag
- Context: entity
Expires
- Syntax: Expires: date
- Context: entity
Last-Modified
- Syntax: Last-Modified: date
- Context: entity
The Last-Modified header indicates when the document was last modified.
Location
- Syntax: Location: URI
- Context: entity
URI
- Syntax: URI: <URI>
- Context: entity
Proxy Security Headers
When Stronghold Web Server performs SSL proxy transactions, it acts as both a server and a client:
- To clients, it behaves like a server that authenticates each client and negotiates session ciphers.
- To remote servers, it behaves like a client that must meet each server's authentication and encryption requirements.
SP-HTTPS: on
HTTP_SP_HTTPS=on
The valid proxy security headers are as follows:
SP-HTTPS
- Syntax: SP-HTTPS: on|off
- Context: secure proxy
"On" or "off," depending on whether SSL is turned on for the current request.
SP-KEYSIZE
- Syntax: SP-KEYSIZE: n
- Context: secure proxy
The full size of the session key, in bits
NOTE: This is different from SP-SECRETKEYSIZE only if you are using an export-crippled cryptography scheme.
SP-SECRETKEYSIZE
- Syntax: SP-SECRETKEYSIZE: n
- Context: secure proxy
SP-SSL-CIPHER
- Syntax: SP-SSL-CIPHER: cipher
- Context: secure proxy
SP-SSL-CLIENT-DN
- Syntax: SP-SSL-CLIENT: name
- Context: secure proxy
SP-CLIENT-CERTIFICATE
- Syntax: SP-CLIENT-CERTIFICATE: hash
- Context: secure proxy
SP-CLIENT-CERT-START
- Syntax: SP-CLIENT-CERT-START: date
- Context: secure proxy
The date on which the client's certificate becomes valid, in ASN1 format
SP-CLIENT-CERT-END
- Syntax: SP-CLIENT-CERT-END: date
- Context: secure proxy
The date on which the client's certificate is no longer valid, in ASN1 format
SP-CLIENT-C
- Syntax: SP-CLIENT-C: country-code
- Context: secure proxy
The two-character code for the country specified in the client certificate
SP-CLIENT-SP
- Syntax: SP-CLIENT-SP: state|province
- Context: secure proxy
SP-CLIENT-ST
- Syntax: SP-CLIENT-ST: state|province
- Context: secure proxy
SP-CLIENT-L
- Syntax: SP-CLIENT-L: locality
- Context: secure proxy
The locality, such as a city or town, specified in the client certificate
SP-CLIENT-O
- Syntax: SP-CLIENT-O: organization
- Context: secure proxy
SP-CLIENT-OU
- Syntax: SP-CLIENT-OU: organizational-unit
- Context: secure proxy
SP-CLIENT-CN
- Syntax: SP-CLIENT-CN: name
- Context: secure proxy
SP-CLIENT-EMAIL
- Syntax: SP-CLIENT-EMAIL: email-address
- Context: secure proxy
SP-CLIENT-IC
- Syntax: SP-CLIENT-IC: country-code
- Context: secure proxy
NOTE: In all proxy security headers, "I" stands for "Issuer."
SP-CLIENT-ISP
- Syntax: SP-CLIENT-ISP: state|province
- Context: secure proxy
SP-CLIENT-IL
- Syntax: SP-CLIENT-IL: locality
- Context: secure proxy
SP-CLIENT-IO
- Syntax: SP-CLIENT-IC: CA
- Context: secure proxy
SP-CLIENT-IOU
- Syntax: SP-CLIENT-IOU: organizational-unit
- Context: secure proxy
The name of the organizational unit of the CA that issued the client certificate
SP-CLIENT-ICN:
- Syntax: SP-CLIENT-ICN: hostname
SP-CLIENT-IEMAIL
- Syntax: SP-CLIENT-IEMAIL: email-address
- Context: secure proxy
The contact email address of the CA that issued the client certificate
SP-CLIENT-KEY-ALGORITHM
- Syntax: SP-CLIENT-KEY-ALGORITHM: algorithm
- Context: secure proxy
SP-CLIENT-KEY-SIZE
- Syntax: SP-CLIENT-KEY-SIZE: n
- Context: secure proxy
SP-CLIENT-KEY-EXP
- Syntax: SP-CLIENT-KEY-EXP: n
- Context: secure proxy
SP-CLIENT-SIGNATURE-ALGORITHM
- Syntax: SP-CLIENT-SIGNATURE-ALGORITHM: algorithm
- Context: secure proxy
SP-PROTOCOL-VERSION
- Syntax: SP-PROTOCOL-VERSION: 2|3
- Context: secure proxy
The version of SSL used in this transaction, either version 2 or 3
[Top] [Prev] [Next] [Last]
© 1998 C2Net International
Feedback: stronghold-docs@c2.net![]()