Confused about @GetHTTPHeader

Isn’t @GetHTTPHeader supposed to return the values of CGI variables? The formula does work with the variables mentioned in the documentation (namely “From,” “Host” and “User-Agent”), but it doesn^t work with any of those listed in “Table if CGI variables”, for example “Path-Info”. Your help will be greatly appreciated.

Thanks

Subject: Confused about @GetHTTPHeader

No, the GetHTTPHeader isn’t used for retreiving CGI-variables at all. It is used for retreiving values found in the HTTP Header. The HTTP header is what is logged in the Weblog and it can contain information like this:

GET /yourdb.nsf/All?OpenView HTTP/1.0

User-Agent: Mozilla 4.0 (X; I; Linux-2.0.35i586)

Host: mylinuxbox.ibm.com

Accept: image/gif, image/jpeg, /

Therefore; the only valid options for the @GetHTTPHeader in this case are “User-Agent”, “Host” and “Accept”.

The Header doesn’t contain any CGI-variable information - but sometimes the valid options have a corresponding CGI-variable, but that is not always the case…

Subject: thanks

Subject: To get a CGI variable…

from the help:When a field is named after a CGI variable, Domino copies the field value from the CGI environment and places it in the field. This feature is useful in computed-for-display fields and for determining “hide when” conditions.

  1. Create a field and give it the name of a CGI variable.

For example, to obtain the IP address of the user submitting the form, add a field named Remote_Addr to the form.

  1. Select the hide-when field properties “Previewed for Editing” and “Opened for editing” so users cannot enter information in it.

Example