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
first page - next page
About
This site is used as a place to dump my ideas, links and other stuff I normaly forget.

Made by Michael Bornholdt Nielsen => Jarry.dk