# POST data and see it echoed back
curl -X POST http://localhost:5000/ -d "Hello, PAGI!"
# => You sent: Hello, PAGI!
# POST JSON data
curl -X POST http://localhost:5000/ \
-H "Content-Type: application/json" \
-d '{"message":"test"}'
# => You sent: {"message":"test"}
# POST from a file
echo "File contents here" | curl -X POST http://localhost:5000/ -d @-
# => You sent: File contents here
Spec References
HTTP request/response events – PAGI::Spec::Www
Keyboard Shortcuts
Global
s
Focus search bar
?
Bring up this help dialog
GitHub
gp
Go to pull requests
gi
Go to GitHub issues (only if GitHub is preferred repository)