Skip to content

Instantly share code, notes, and snippets.

View jfojtl's full-sized avatar

Jakub Fojtl jfojtl

View GitHub Profile
@jfojtl
jfojtl / CURL-cheatsheet.md
Created September 27, 2016 08:59 — forked from Kartones/CURL-cheatsheet.md
CURL Cheatsheet
  • XML GET
curl -H "Accept: application/xml" -H "Content-Type: application/xml" -X GET "http://hostname/resource"
  • JSON GET
curl -i -H "Accept: application/json" -H "Content-Type: application/json" -X GET "http://hostname/resource"
  • JSON PUT