Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 373 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 373 Bytes

HTTP-server

How to Run:

  • Download all files in repository

  • On Ubuntu, run command: make ./pa2 -port=[PORT NUMBER] mime.types

  • Open another terminal and run command: lynx 'localhost:[PORT NUMBER]/[FILENAME]?len=[FILE LENGTH]&off=[OFFSET LENGTH]'

Server will either send the file or response with proper HTTP code.