Skip to content

VladGaranovskyi/VG_HTTP_Server_in_C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Custom HTTP/1.1 & TCP Server in C

This project contains two simple implementations in pure C:

  1. Basic HTTP/1.1 Server β€” Handles simple HTTP GET requests. You can request the filename with extension that is staying on the server machine. Also, you can whitelist your ip in txt file and specify the filename when starting the application. Don't worry, the HTTP server will hide this file by returning 404 if the hacker is trying to get it.
  2. TCP Server β€” A minimal TCP Echo server demonstrating basic socket communication.

πŸš€ How to Run

Prerequisites:

  • GCC Compiler
  • Linux (Tested on Kali Linux & WSL)
  • Basic knowledge of networking sockets

1. Compile and Run HTTP Server

cd HTTPclient
gcc http_server.c -o http_server
./http_server <path-to-ip-whitelist-txt-file>

About

A basic HTTP server in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors