Skip to content

lr00rl/http_implementation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTTP and HTTPS Implementations

This repository contains simple client and server implementations for HTTP and HTTPS in various programming languages.

Directory Structure

  • http_c/: C implementation of an HTTP server and client.
  • http_go/: Go implementation of an HTTP server and client.
  • http_python/: Python implementation of an HTTP server and client.
  • http_rust/: Rust implementation of an HTTP server and client.
  • https_c/: C implementation of an HTTPS server and client using OpenSSL.

How to Run

C (HTTP)

Server:

gcc http_c/server.c -o http_c/server
./http_c/server

Client:

gcc http_c/client.c -o http_c/client
./http_c/client

Go (HTTP)

Server:

go run http_go/server.go

Client:

go run http_go/client.go

Python (HTTP)

Server:

python3 http_python/server.py

Client:

python3 http_python/client.py

Rust (HTTP)

Server:

rustc http_rust/server.rs -o http_rust/server
./http_rust/server

Client:

rustc http_rust/client.rs -o http_rust/client
./http_rust/client

C (HTTPS)

This implementation requires OpenSSL.

  1. Navigate to the directory:

    cd https_c
  2. Build the server and client:

    make
  3. Run the server:

    ./server
  4. In a new terminal, run the client:

    ./client

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published