curl -H "Content-Type:application/json" -X POST -d '{"username":"a_username","password":"a_password"}' https://www.api.com/password
http --json --debug POST $AUTH_URL username=$USERNAME password=$PASSWORD
http --json --debug POST $AUTH_URL username=$USERNAME password=$PASSWORD
cat auth.json | \
jq -r '.username=env.USERNAME | .password=env.PASSWORD'
http --json POST $AUTH_URL
requests.request(**{
"allow_redirects": false,
"auth": "None",
"cert": "None",
"data": "{\"username\": \"a_username\", \"password\": \"a_password\"}",
"files": {},
"headers": {
"Accept": "None",
"Content-Type": "application/json",
"User-Agent": "None"
},
"method": "post",
"params": {},
"proxies": {},
"stream": true,
"timeout": 30,
"url": "https://www.api.com/password",
"verify": true
})
@mfieldhouse the style is called 'fruity'. See http --style=fruity httpbin.org/get
.
You can also specify the default style via the config file.
auth
section, but I didn't see a way to do that
curl -v 'http://localhost/endpoint/\[abc\]'
[...]
> GET /endpoint/[abc] HTTP/1.1
vshttp '/endpoint/[abc]' -v
GET /endpoint/%5Babc%5D HTTP/1.1
httpie
and http-prompt
to simplify my interactions with IFTTT Webhooks
.
IFTTT Webhooks
come in the formhttps://maker.ifttt.com/
my-variable-stuff/then/a/long/ifttt/authentication/token/that/would/be/cool/to/template/away/somehow