Skip to content

Http Client as part 1 of adblocker assignment for the course Computer Networks

Notifications You must be signed in to change notification settings

TuurNeckebroeck/CN-http-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CN-http-client

A pure-java CLI HTTP client application written as an assignment for the Computer Networks (G0Q43A) course at KU Leuven. The client can send get, head, post and put requests to a given website or IP address and a given port. With post and put requests, a custom body can be added. Both fixed-length and chunked responses can be read.

Usage

java ./bin/ClientMain [GET/HEAD/POST/PUT] [URI] [PORT]

For example: java ./bin/ClientMain GET http://webs.cs.berkeley.edu/tos 80

Examples

Example requests can be found in ./example_requests.txt

TODO

  • Fully implement CacheManager
  • Implement if-modified-since header
  • Opening extra socket and sending request if an external source is requested

About

Http Client as part 1 of adblocker assignment for the course Computer Networks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published