Manuals / Linux & CLI for Testers / Chapter 6
B · Tester toolkit · intermediate · Week 2 · Chapter 6 of 9
Networking lite for QA
curl, ping, dig/nslookup, ssh basics. Hit APIs and check headers without Postman sometimes.
curl an API
curl an APIDrag stickies · tap for tips
Example
curl -sS -D - -o ~/cli-lab/data/body.json https://httpbin.org/get | head
jq . ~/cli-lab/data/body.json 2>/dev/null || cat ~/cli-lab/data/body.json
Do this now
GET a public API; show status and headers. Save body to a file.
Pro tip: Don’t curl random internal prod URLs with write methods.
Was this step clear?
Chapter learning outcomes
Clear these before you leave