saladuit / BuzingaServ

This project is about writing our own HTTP server.
MIT License
2 stars 0 forks source link

System Test (netcat/postman) #17

Closed saladuit closed 1 year ago

saladuit commented 1 year ago

I made a few files under tests/requests/. For now I made a basic:

  1. delete.txt
  2. get.txt
  3. post.txt

Could provide useful for making the script @Tentanus

saladuit commented 1 year ago

Ik heb dit van sander gekregen @Tentanus

- GET: `curl localhost:18000`
- POST: `curl --data-binary @tests/1_line.txt localhost:18000`
- POST with newline trimming: `curl -d @tests/1_line.txt localhost:18000`
- DELETE: `curl -X DELETE localhost:18000`