Skip to content

Instantly share code, notes, and snippets.

@petejohanson
Created August 15, 2016 16:38
Show Gist options
  • Save petejohanson/d00537163fce8a99b60be06acbeb9a8a to your computer and use it in GitHub Desktop.
Save petejohanson/d00537163fce8a99b60be06acbeb9a8a to your computer and use it in GitHub Desktop.
HTTPie example
[peter@suspect ~]$ http --print=hH get https://cryptottdemowebapi.xbtce.net:8443/api/v1/public/tick Accept:*/*
GET /api/v1/public/tick HTTP/1.1
Accept: */*
Accept-Encoding: gzip, deflate
Connection: keep-alive
Host: cryptottdemowebapi.xbtce.net:8443
User-Agent: HTTPie/0.9.4
HTTP/1.1 200 OK
Content-Encoding: gzip
Content-Length: 1357
Content-Type: application/json; charset=utf-8
Date: Mon, 15 Aug 2016 16:36:11 GMT
Server: Microsoft-HTTPAPI/2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment