jppgks / http-client-server

Client and server implementation of the Hypertext Transfer Protocol (HTTP) using Java Sockets

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HTTP Client and Server Build Status

Client and server implementation of the Hypertext Transfer Protocol (HTTP) using Java Sockets.

Written by @StijnCaerts and @jppgks for the second assignment of Computer Networks to learn Socket programming and get familiarized with the basics of distributed programming.

Run server

# 🐳  Pulls image, then runs server publishing port 8080 on localhost
docker run --name "bernard" -d -p 8080:8080 jppgks/http-server

Interact with the server at localhost:8080! 🎉

Run client

# Modify arguments (method, host, port) as you see fit
docker run -it \
       --network container:"bernard" \
       jppgks/http-client \
       -Pmethod="GET" -Phost="localhost" -Pport="8080"

About

Client and server implementation of the Hypertext Transfer Protocol (HTTP) using Java Sockets


Languages

Language:Java 100.0%