NAT32 Reference Manual

NAME
httpd - the NAT32 HTTP daemon
SYNOPSIS
start httpd [port]
DESCRIPTION
The HTTP daemon listens at the specified port number (default 8080) for incoming HTTP GET requests. Because it runs as a Winsock thread, the daemon listens at Windows IP addresses, not at NAT32 IP addresses. Any standard Web Browser can be used to access files in NAT32's htm directory. Access to any other directory is not permitted.

Command execution (Active Content) is supported via GET requests of the following formats:

GET /shell?cmd=command+arg1+arg2+... HTTP/1.1
GET /tcl?cmd=command+arg1+arg2+..... HTTP/1.1
GET /java?cmd=command+arg1+arg2+.... HTTP/1.1

Note that the Active Content feature only works for pages loaded from the NAT32 HTTP daemon. Numerous code samples can be found in the htm directory of your NAT32 installation.

A sample Java class explorer.class is available. It allows NAT32 shell commands to be issued from a window within Internet Explorer. The class may work with other browsers, depending on the degree of compatibility of the installed Java VM.

NOTES
The HTTP daemon has the following access modes:
local       Access from localhost only (default).
private     Access from private addresses only, password checked.
public      Access from all IP addresses, password checked.
acl         Access per Access Control List only.

Localhost always has unrestricted access. If password checking is done, the user is prompted for a (case-sensitive) Username and Password the first time a browser instance requests access. The Username is the name of the Windows account under which NAT32 is running, the Password is your NAT32 Password.

The HTTP daemon is started with the following command in file startup:

start httpd 8080

Use a different port number if you already have an HTTP server running under Windows on the NAT32 machine.

To stop the daemon, enter the command:

kill HTTPD

The hstat command can be used to interact with the daemon as follows:

        hstat D     // Debugging ON
        hstat d     // Debugging off
        hstat L     // Logging ON
        hstat l     // Logging off

        hstat local | private | public | acl
SEE ALSO
httpget sh tcl
[How-To Index] [Back]