[go: up one dir, main page]

Skip to content

🖥️ HTTP Sever implementation in C using Sockets!

Notifications You must be signed in to change notification settings

shxntanu/http-server-c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

HTTP Server in C

HTTP is the protocol that powers the web. The challenge was to build a HTTP server that's capable of handling simple GET/POST requests, serving files and handling multiple concurrent connections.

Features

  • Parses command-line arguments for the directory to serve files from.
  • Handles GET requests for files in the specified directory.
  • Handles POST requests to create new files in the specified directory.
  • Responds with the appropriate HTTP status code (200 OK, 404 Not Found, etc.).
  • Can echo back the User-Agent header from the request.

Usage

To get started, first you will need to make the script start.sh executable. To do this, run the following command:

chmod +x start.sh

Then, you can start the server by running the following command:

./start.sh

About

🖥️ HTTP Sever implementation in C using Sockets!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published