This may be heresy but I do this $ curl -s -H "AgileBench-Token: $TOKEN" -H "Content-type: application/json" http://agilebench.com/api/v1/projects/477/stories/15 | python -mjson.tool
where $TOKEN is an environment variable. It works well and most people have python installed out of the box. Mark On Sun, Feb 20, 2011 at 12:40 PM, Ben Schwarz <[email protected]> wrote: > Perhaps you should checkout https://github.com/cloudhead/http-console > <https://github.com/cloudhead/http-console>I only used it a couple of > times and kinda forgot it existed, until now. > > On Sunday, 20 February 2011 at 12:34 PM, Mike Bailey wrote: > > Sorry mate! Hope you can find another copy of them. > > Got any ideas on how to make curl automatically pass output through > prettify_json.rb if the response has "Content-Type: text/javascript"? > > - Mike > > > On Sun, Feb 20, 2011 at 12:10 PM, Gus Gollings <[email protected]>wrote: > > On Sun, Feb 20, 2011 at 11:51 AM, Mike Bailey <[email protected]> wrote: > > Good spotting Gus! > > What else did you have in your .curlrc? > > I had setup some different default Content-Type headers and logging > for different endpoints I regularly query for my linked data[1] > studies and some (I hate the RMIT network) proxy settings and some > other nick-knacks. > > Regards, > > Gus > > [1] http://linkeddata.org/ > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby or Rails Oceania" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rails-oceania?hl=en. > -- Mark Mansour +61(4) 0535 0175 http://agilebench.com/ Follow Us on Twitter @agilebench -- You received this message because you are subscribed to the Google Groups "Ruby or Rails Oceania" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rails-oceania?hl=en.
