Red Hat NETSCAPE ENTERPRISE SERVER 6.1 - NSAPI PROGRAMMER GUIDE Manuale Utente Pagina 19

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 148
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 18
Enterprise Server 6.1 APIs
Chapter 1 Overview 19
Adding CGI Programs to the Server
To add CGI programs to the Enterprise Server, simply do one of the following:
Drop the program file in a CGI directory (if there are any).
Give it a file name that the server recognizes as a CGI program and put it in
any directory at or below the document root (if CGI file type recognition has
been activated).
For UNIX, make sure the program file has execute permissions set.
Windows NT/Windows 2000 CGI and Shell CGI Programs
For information about installing CGI and shell CGI programs on Windows
NT/Windows 2000 using the Class Manager interface, see the Netscape Enterprise
Server Administrator’s Guide.
Perl CGI Programs
You cannot run CGIs using Perl 5.6.x with the -w flag. Instead, include the
following code in the file:
use warnings;
CGI Variables
In addition to the standard CGI variables, you can use the Enterprise Server CGI
variables in Table 1-1 in CGI programs to access information about the client
certificate if the server is running in secure mode. The CLIENT_CERT and
REVOCATION variables are available only when client certificate based
authentication is enabled.
Table 1-1 CGI Variables
Variable Description
SERVER_URL The URL of the server that the client requested
HTTP_xxx An incoming HTTP request header, where xxx is
thenameoftheheader
HTTPS ON if the server is in secure mode and OFF
otherwise
HTTPS_KEYSIZE Thekeysize of the SSLhandshake (available ifthe
server is in secure mode)
Vedere la pagina 18
1 2 ... 14 15 16 17 18 19 20 21 22 23 24 ... 147 148

Commenti su questo manuale

Nessun commento