Console application for studying operations of the HTTP protocol.
The server can return various static resources on request e.g: html pages, images, JavaScript scripts and CSS tables.
- HTTP
- Java 8
- Properties
- Log4j
- Maven
- JUnit
- Download the archive with application.
- Unzip archive.
- Put index.html and other resources in the folder "WWW".
- Run the file "start.cmd".
-
Download the source code or clone the repository (stable branch is master).
-
Install project builder Maven and JDK 8.
-
Run the command mvn package in the root of the project.
-
In the root of the project, the folder "target" appears, it will contain "simple-http-server.jar". This is the executable file.
-
The application will not work without some things:
5.1 Folder WWW next to "simple-http-server.jar" file.
5.2 Folder resources next to "simple-http-server.jar" file with:
- Configuration file **configuration.properties**, containing all properti(read the section "Properties") - Folder **errors** whit html page for error. (400.html, 404.html, 500.html) -
The application is launched by the command java -jar "Simple HTTP Server.jar"
timerIsON = [true|false] -- Switch for server timer.
timerTime = [from 1 to 153722867280911] -- Time for timer, in minutes
port = [8080] -- Port on which the requests will be expected