Skip to content

dumidu1998/Simple-web-Server-in-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-web-Server-in-C

Simple web server written in C.

It is a multiprocess & multi-threaded web server.

Works in a Linux environment.

Supports

  • gif
  • jpg
  • jpeg
  • png
  • ico
  • htm
  • html
  • pdf

Compile Using below command and run

gcc -pthread http-server.c -o http-server

*pthread Library is used when compiling.

Then open the browser and Type http://localhost:8080 and ENJOY!!!!