1014 B
1014 B
xh
Meta
name: xh
repo: https://github.com/ducaale/xh
description: Friendly and fast tool for sending HTTP requests
Usage
Sample #1
curl -X POST 'https://play.hatter.me/message/hook.jsonp?token=TOKEN' \
--header 'Content-Type: application/json' \
--data '{"msgtype":"text","text":{"content":"test-message"}}'
xh POST 'https://play.hatter.me/message/hook.jsonp?token=TOKEN' \
Content-Type:application/json \
msgtype=text \
text:='{"content":"test-message"}'
xh POST 'https://play.hatter.me/message/hook.jsonp' \
Content-Type:application/json \
token==TOKEN \
msgtype=text \
'text[content]=test-message'
Sample #2
xh POST https://hatter.ink/util/print_request.action \
x-header-name:test-value \
a=b \
b:=1 \
c:='[1,2,3]' \
d:='{"name":111}' \
'd[name2]=222' \
param==p1
{
"a": "b",
"b": 1,
"c": [ 1, 2, 3 ],
"d": {
"name": 111,
"name2": "222"
}
}