Skip to content

Toti91/HTTP_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is a HTTP server written in C using UNIX sockets.
The server supports GET, POST and HEAD requests.

To run the server, run the follwing commands in the "src" directory:
   make
   ./httpd <port>   

When the server receives a request it checks the header for method and handles the request corresponding to that method.

GET: 
     The server constructs a HTML page in-memory and serves it to the client.

POST: 
     The server constructs a HTML page in-memory, extracts the data from the body of the requests and injects it into the html, page.

HEAD: 
     The server just sends the header.

About

A simple HTTP server (C exercise).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published