Curl and pretty json
Prints header and json as one long string
curl -u <username>:<password> -i -H "Accept: application/json" http://localhost:28080/dff/resources/meddelelser/tds2/a3c2c038-7b70-4059-8721-389831736089
Prints no header but json in pretty format
curl -u <username>:<password> -H "Accept: application/json" http://localhost:28080/dff/resources/meddelelser/tds2/a3c2c038-7b70-4059-8721-389831736089 | python -m json.tool
Tags : Curl
Created 28/04-2015 by Michael Bornholdt Nielsen