Skip to main content

sareq get

Send HTTP GET request to the specified URL

sareq get URL [flags]

Options

  -B, --body string             define the body to send with HTTP request (e.g. '{"key1": 1, "key2": "abc"}')
-H, --header stringToString add a header to include with HTTP request (e.g. "key=value") (default [])
--timeout int specify timeout to use with HTTP request (default 10)
--no-color disable coloring in HTTP response
--no-prettify disable prettification in HTTP response
-h, --help help for get

Examples

# basic GET request
sareq get https://api.example.com/users/user123

# GET request with timeout of 5 seconds
sareq get https://api.example.com/users/user123 --timeout 5

# GET request with header
sareq get https://api.example.com/users/user123 --header "Authorization=abc123"

See Also

  • sareq - A modern, open-source HTTP client for the command line