1# HTTPie
2
3HTTPie (`http` command) uses `Header:Value` syntax for headers and reads the body from stdin with `<` or via echo/pipe.
4
5## Examples
6
7```bash
8# normal success
9echo 'Finished refactoring the auth middleware in rumilo. Session validation is cleaner now and all tests pass.' | \
10 http POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
11 "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
12 "Title:Refactored authentication middleware in rumilo" \
13 "Tags:hammer_and_wrench"
14
15# success with a relevant click URL
16echo 'Bumped the kagi-ken AUR package to v0.4.2 and updated the checksums.' | \
17 http POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
18 "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
19 "Title:Updated AUR package for kagi-ken" \
20 "Tags:package" \
21 "Click:https://aur.archlinux.org/packages/kagi-ken"
22
23# something went wrong
24echo 'Ran into a full disk on the build server while compiling pi-mono. /var/log looks like it needs rotation. The build is blocked until there is space.' | \
25 http POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
26 "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
27 "Title:Build failed in pi-mono — disk full" \
28 "Tags:rotating_light" \
29 "Priority:4"
30
31# urgent failure
32echo 'The primary Postgres instance stopped responding during a migration. Rolled back what we could, but the app is down.' | \
33 http POST "https://ntfy.sh/$NTFY_TOPIC_LLM" \
34 "Authorization:Bearer $NTFY_ACCESS_TOKEN" \
35 "Title:Production database unreachable" \
36 "Tags:sos" \
37 "Priority:5"
38```