Forrest logo
back to context overview

xh

List of commands for xh:

  • xh:tldr:0960a xh: Send a GET request.
    $ xh ${httpbin-org-get}
    try on your machine
    explain this command
  • xh:tldr:170dc xh: Send a GET request with a custom header.
    $ xh get ${httpbin-org-get} ${header-name:header-value}
    try on your machine
    explain this command
  • xh:tldr:8cc83 xh: Make a GET request and save the response body to a file.
    $ xh --download ${httpbin-org-json} --output ${filename}
    try on your machine
    explain this command
  • xh:tldr:98ad4 xh: Send a GET request with query parameters (e.g. `first_param=5&second_param=true`).
    $ xh get ${httpbin-org-get} ${first_param==5} ${second_param==true}
    try on your machine
    explain this command
  • xh:tldr:9c342 xh: e.g. `{"name": "john", "age": 25}`).
    $ xh post ${httpbin-org-post} ${name=john} ${age:=25}
    try on your machine
    explain this command
back to context overview