CGI Parameters for WebSTAR on MacOS
This is a description of the 'sdoc' AppleEvent sent by WebSTAR to external CGI applications.
Event Class: WWW½ -- 3 'W's, followed by an Omega (option-z)
Event Code: sdoc
Name | Keyword | Size | Description |
Path Args | ---- | 1024 | arguments following the "$" in a URL. This keyword is also the direct parameter of the AppleEvent (keyDirectObject) |
Search Args | kfor | 1024 | arguments following a "?" in a URL. |
Username | user | 32 | Username if authentication was required |
Password | pass | 32 | Password if authentication was required |
From User | frmu | 128 | E-mail address of user (obsolete) |
Client Address | addr | 256 | Domain name of client (or IP address if DNS look-ups are disabled) |
Server Address | svnm | 256 | Domain name of server (or IP address if DNS look-ups are disabled) |
Server IP Port | svpt | 16 | TCP/IP port server is listening on |
Script Name | scnm | 1024 | The path of the CGI being executed. In the case of Actions, this parameter contains the file path portion of the URL |
Content Type | ctyp | 64 | MIME type of post arguments if present |
Referrer | refr | 1024 | URL of the page from which this CGI was referenced |
User Agent | Agnt | 256 | The WWW client software name and version |
Action | Kact | 32 | The action being performed by the CGI, either the name of the user defined action or one of the strings: CGI, ACGI, PREPROCESSOR, POSTPROCESSOR, ERROR, INDEX, or NOACCESS. |
Action Path | Kapt | 1024 | path to this CGI if it is executing as an action (in which case, the script name parameter contains the URL file path sent from the client) |
Post Arguments | post | 32,768 | arguments sent from WWW client as part of a POST request (e.g., form arguments) |
Method | meth | 32 | the HTTP method being requested (e.g., GET, GET_CONDITIONAL, POST, etc.) |
Client IP Address | Kcip | 32 | the TCP/IP address of the client |
Full Request | Kfrq | 4096 | the complete, unmodified HTTP request as received from the client |
Connection ID | Kcid | 4 | a unique long integer value identifying the TCP/IP connection the server is communicating to the client over. Used for sending the "Send Partial" AppleEvent to WebSTAR. |
Server Root | DIRE | 70 | an FSSpec pointing to the root folder of the current virtual host, or to the WebSTAR root folder if no virtual host is used for this URL. |
If you are unable to find the answers to your questions here or need additional help using StarNine products, please contact support@starnine.com.