curl, but tries to prettify json