About This Code
Brief Description:
List as String and ListTag
Contributor:
Andrew Jones
Last Modified:
17 Jun 2002
OpenNTF Disclaimer
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
Usage / Example
Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Dim envVariables List As String
Set db = s.CurrentDatabase
Set doc = s.DocumentContext
envVariables("Auth_Type") = doc.Auth_Type(0)
envVariables("Content_Length") = doc.Content_Length(0)
envVariables("Content_Type") = doc.Content_Type(0)
envVariables("Gateway_Interface") = doc.Gatewary_Interface(0)
envVariables("HTTP_Accept") = doc.HTTP_Accept(0)
envVariables("HTTP_Referer") = doc.HTTP_Referer(0)
envVariables("HTTPS") = doc.HTTPS(0)
envVariables("HTTP_User_Agent") = doc.HTTP_User_Agent(0)
envVariables("Path_Info") = doc.Path_Info(0)
envVariables("Path_Translated") = doc.Path_Translated(0)
envVariables("Query_String") = doc.Query_String(0)
envVariables("Remote_Addr") = doc.Remote_Addr(0)
envVariables("Remote_Host") = doc.Remote_Host(0)
envVariables("Remote_Ident") = doc.Remote_Ident(0)
envVariables("Remote_User") = doc.Remote_User(0)
envVariables("Request_Method") = doc.Request_Method(0)
envVariables("Script_Name") = doc.Script_Name(0)
envVariables("Server_Name") = doc.Server_Name(0)
envVariables("Server_Port") = doc.Server_Port(0)
envVariables("Server_Protocol") = doc.Server_Protocol(0)
envVariables("Server_Software") = doc.Server_Software(0)
envVariables("Server_URL_Gateway_Interface") = doc.Server_URL_Gateway_Interface(0)
print "<HTML><HEAD><TITLE>Environment Variables</TITLE></HEAD>"
print "<BR><BR>"
Forall v in envVariables
print ListTag(v) & " - " & v & "<BR>"
End Forall
Print "<BR><BR>"
Print "</HTML>"