The wamconfig.txt File
Editing this File
Innovative recommends you edit the wamconfig.txt file only if you are familiar with HTTP requesting methods and headers.
The wamconfig.txt file specifies customized methods and headers for support of the HTTP 1.1 protocol in Web Access Management.
- If Web Access Management receives a HTTP method that is not one of the methods supported by default and is not listed as a customized method in this file, the system does not forward the request.
- If Web Access Management receives a HTTP header that is not one of the headers supported by default and is not listed as a customized client header in this file, the system removes the header from the forwarded request.
This file resides in your http/live directory. You can edit this file using the Web Master function.
File Elements
The wamconfig.txt file accepts the following entries for modifying HTTP keys. Entries are listed with one entry per line:
Entry | Description | ||||
---|---|---|---|---|---|
HTTPMethod: [method] | The HTTP method, where [method] is the customized method value. | ||||
HTTPHeader: [header] |
The HTTP header, where [header] is the customized client header value. This key accepts the following special characters in the value:
|
||||
KeepAliveTimeout: [timeout] |
The timeout, in seconds. If the browser does not submit another request within the specified timeout, Web Access Management closes the connection. This value displays in the request as the timeout portion of the HTTP Keep-Alive header. For example, if KeepAliveTimeout:6, then the value displays in the HTTP Keep-Alive header as: Keep-Alive: timeout=6, max=10 If the timeout portion is not defined, Web Access Management uses a default timeout value of 5. |
||||
KeepAliveMax: [requests] |
The maximum number of requests submitted in the same connection. This value displays in the request as the max portion of the HTTP Keep-Alive header. For example, if KeepAliveMax:12, then the value displays in the HTTP Keep-Alive header as: Keep-Alive: timeout=5, max=12 If the max portion is not defined, Web Access Management uses a default max value of 10. |
||||
AddHTTPHeader: [header] |
The HTTP header to add to requests forwarded to hosts. For example: AddHTTPHeader: X-Innovative-WAM: Innovative WAM Was Here In certain instances, this header is required to reapply a proxy (for example, after signing in to MyEBSCO using a non-proxied link). |
If neither the KeepAliveTimeout nor KeepAliveMax values are set in the wamconfig.txt file, Web Access Management submits the following default value in the HTTP Keep-Alive response header:
Keep-Alive: timeout=5, max=10
For example:
HTTPMethod: SEARCH HTTPHeader: X-My-header KeepAliveTimeout: 6 KeepAliveMax: 12
Default Support for HTTP Methods and Headers
HTTP Methods
By default, Web Access Management supports the following HTTP methods in HTTP 1.1:
- GET, POST
- HEAD
- PUT
- DELETE
- OPTIONS
HTTP Headers
By default, Web Access Management supports the following HTTP client headers in HTTP 1.1:
- Accept:
- Accept-Charset:
- Accept-Encoding:
- Accept-Language:
- Allow:
- Authorization:
- Connection:
- Content-Length:
- Content-Type:
- Cookie:
- Date:
- Expect:
- From:
- If-Modified-Since:
- If-Unmodified-Since:
- Referer:
- Stream-Format-Class:
- Unless-Modified-Since:
- User-Agent:
X-headers
Web Access Management automatically forwards any client header that starts with X- and does not start with X-Forwarded-.