CmdID

CmdID / Commands

http

HTTPie: an HTTP client designed for testing, debugging, and generally interacting with APIs and HTTP servers. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Make a simple GET request (shows response headers and content)

http https://example.comIdentify

Print specific parts of the content (H: request headers, B: request body, h: response headers, b: response body, m: response metadata)

http --print H https://example.comIdentify

Specify the HTTP method when sending a request and use a proxy to intercept the request

http GET --proxy http:http://localhost:8080 https://example.comIdentify

Follow any 3xx redirects and specify additional headers in a request

http --follow https://example.com 'User-Agent: Mozilla/5.0' 'Accept-Encoding: gzip'Identify

Authenticate to a server using different authentication methods

http --auth username:password --auth-type basic GET https://example.com/authIdentify

Simulate sending a request without actually sending it

http --offline GET https://example.comIdentify

Use named sessions for persistent custom headers, auth credentials, and cookies

http --session session_name --auth username:password https://example.com/auth API-KEY:xxxIdentify

Upload a file to a form (the example below assumes that the form field is <input type="file" name="cv" />)

http --form POST https://example.com/upload cv@path/to/fileIdentify