Manuals / Linux & CLI for Testers / Ch 6

B · Tester toolkitIntermediate35 min read

6. Networking lite for QA

Linux & CLI for Testers · 36 pages source format

curl, ping, dig/nslookup, ssh basics. Hit APIs and check headers without Postman sometimes.

What you'll learn

  • curl
  • DNS peek
  • SSH caution

curl an API

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.

Clear?

Checklist