Skip to content

gupta-utkarsh/HTTPServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Server

This server is made in python using TCP socket module. Meant as a learning exercise.

  • Supports HEAD and GET requests.
  • Uses multithreading to serve more than one client at a time using the thread module.
  • Looks up for index.html by default if file not specified.
  • Gives 200,400 and 404 responses.
  • Set to listen to requests on port 8888 on localhost.

Set Up :

  • Clone the repository.
  • Add files you wish to serve to this repository as this is the base directory.
  • Change the port to something else if any other service is using the port 8888.
  • Run ./server.py.
  • Go to the address localhost:8888/relative/path/of/file using any browser.

About

A basic HTTP Server made in python.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published