Skip to content
This repository was archived by the owner on Jun 12, 2021. It is now read-only.

menzerath/http-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors