https://github.com/jppgks/http-client-server
Client and server implementation of the Hypertext Transfer Protocol (HTTP) using Java Sockets
https://github.com/jppgks/http-client-server
http http-client http-server socket-programming
Last synced: 10 months ago
JSON representation
Client and server implementation of the Hypertext Transfer Protocol (HTTP) using Java Sockets
- Host: GitHub
- URL: https://github.com/jppgks/http-client-server
- Owner: jppgks
- Created: 2017-03-06T10:33:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-21T14:19:44.000Z (almost 9 years ago)
- Last Synced: 2025-04-02T09:44:56.236Z (10 months ago)
- Topics: http, http-client, http-server, socket-programming
- Language: Java
- Homepage:
- Size: 1.08 MB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HTTP Client and Server [](https://travis-ci.com/jppgks/http-client-server)
Client and server implementation of the Hypertext Transfer Protocol (HTTP) using Java Sockets.
Written by [@StijnCaerts](https://github.com/StijnCaerts) and [@jppgks](https://github.com/jppgks) for the second assignment of [Computer Networks](https://onderwijsaanbod.kuleuven.be/syllabi/e/G0Q43AE.htm#activetab=doelstellingen_idp535264)
to learn Socket programming and get familiarized with the basics of distributed programming.
## Run server
```shell
# 🐳 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
```shell
# Modify arguments (method, host, port) as you see fit
docker run -it \
--network container:"bernard" \
jppgks/http-client \
-Pmethod="GET" -Phost="localhost" -Pport="8080"
```