This is a very simple Java HTTP-Server, which allows quick file-transfers and directory-listings.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea
src/main/java/pro/marvin
www
.gitignore
.gitlab-ci.yml
HTTP-Server.iml
LICENSE
README.md
pom.xml

README.md

HTTP-Server

This is a very simple Java HTTP-Server, which allows quick file-transfers and directory-listings.

Originally this small server was developed as a part of my Facharbeit zum HTTP-Protokoll but now it contains some more features and is a bit more extensible.

Support

This small HTTP-server currently supports those features:

  • Requests
    • GET
    • POST
    • HEAD
  • Header
    • If-Modified-Since
  • Other features
    • directory-listing
    • simple 403 and 404 error-pages

How To

Requirements

  • Java (Version 8 or higher)

Download

Download a current HTTP-Server.jar-file from GitHub Releases or compile the application on your own using Maven.

Run

$ java -jar HTTP-Server.jar --help
##############################################
### a simple Java HTTP-Server              ###
### github.com/MarvinMenzerath/HTTP-Server ###
##############################################
 --directory (-d) FILE    : web-root directory (default: .)
 --directory-listing (-l) : allow directory-listing (default: false)
 --help (-h)              : print usage help (default: true)
 --logfile (-f) FILE      : path and name of log-file (if wanted)
 --no-gui (-g)            : do not show gui (if possible) (default: false)
 --port (-p) N            : port to use (default: 8080)