NOAUTH

NOAUTH indicates that no userid and password are required to access the HTTP
server.

AUTH

AUTH indicates that a userid and a password are required to access the HTTP
server. The userid and password have to be coded after the AUTH parameter.

userid

The userid can be any valid string.

password

The password can be any valid string.

8.75.4 Examples

Example 1:

Display the HTTP server status.

HHC00013I Herc command: 'http'

HHC01809I HTTP server is waiting for requests

HHC01811I HTTP server root directory D:/HERCULES/HTML/

HHC01808I HTTP server port is port=80 noauth

Figure 152: HTTP command (display HTTP server status)

Example 2:

Stop the HTTP server.

HHC00013I Herc command: 'http stop'

HHC01805I HTTP server signaled to stop

HHC00101I Thread id 0000097C, prio 0, name 'HTTP server' ended

Figure 153: HTTP command (stop HTTP server)

Example 3:

Set the HTTP server root directory to “D:\Hercules\html”.

HHC00013I Herc command: 'http root D:/Hercules/html'

HHC02204I httproot set to D:/Hercules/html/

Figure 154: HTTP command (set HTTP server root directory)

Example 4:

Set the HTTP server port to 8081 with required authorization for access. The userid should be set to
“hercuser” and the password to “hercpswd”.

HHC00013I Herc command: 'http port 8081 auth hercuser hercpswd'

HHC02204I port set to port=8081 auth userid<hercuser> password<hercpswd>

Figure 155: HTTP command (set HTTP server port and authorization)

Example 5:

Start the HTTP server.

HHC00013I Herc command: 'http start'

HHC01807I HTTP server signaled to start

HHC00100I Thread id 00001344, prio 0, name 'HTTP server' started

HHC01802I Using HTTPROOT directory 'D:/Hercules/html/'

HHC01803I Waiting for HTTP requests on port 8081

Figure 156: HTTP command (start HTTP server)

Previous Page Next Page