← Back to team overview

graphite-dev team mailing list archive

Re: [Question #191224]: getting raw/csv/json data from a curl call?

 

Question #191224 on Graphite changed:
https://answers.launchpad.net/graphite/+question/191224

    Status: Open => Answered

David Blackman proposed the following answer:
do you need to quote the url? possible that everything after the first & is
trying to be launched as a new process.

On Tue, Mar 20, 2012 at 10:55 AM, Sandy Walsh <
question191224@xxxxxxxxxxxxxxxxxxxxx> wrote:

> New question #191224 on Graphite:
> https://answers.launchpad.net/graphite/+question/191224
>
> If I issue something like:
>
> http://mygraphite.com:8080/render?from=-1d&target=foo.data&format=json
>
> from the browser I get back beautiful json data, but if I do
>
> curl
> http://mygraphite.com:8080/render?from=-1d&target=foo.data&format=json
>
> from the cmdline, I always get back a png.
>
> Is there something I'm doing wrong? Is there a header I should be
> including?
>
> --
> You received this question notification because you are a member of
> graphite-dev, which is an answer contact for Graphite.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~graphite-dev
> Post to     : graphite-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~graphite-dev
> More help   : https://help.launchpad.net/ListHelp
>

-- 
You received this question notification because you are a member of
graphite-dev, which is an answer contact for Graphite.