postgrest-docs icon indicating copy to clipboard operation
postgrest-docs copied to clipboard

Note about quoting on curl

Open steve-chavez opened this issue 7 years ago • 3 comments

In bash a request that includes & must be quoted:

curl "http://localhost:3000/rpc/add_them?a=1&b=2"

Otherwise, on & it'll run curl as a background process.

Related to https://github.com/PostgREST/postgrest/issues/1107.

steve-chavez avatar Jun 01 '18 16:06 steve-chavez

Perhaps this could be a how-to on using curl? There are some things in http://postgrest.org/en/v5.2/integrations/timescaledb.html#postgrest-on-hypertables that would be useful to document.

Though maybe we'd be getting out of scope.

steve-chavez avatar Aug 26 '19 16:08 steve-chavez

What we could do instead is to quote all curl calls in the docs and in Tutorial 0 add the note with the warning.

steve-chavez avatar Aug 26 '19 16:08 steve-chavez

There is also a curl problem on windows regarding single quotes, see https://gitter.im/begriffs/postgrest?at=5d9decce49c7720aaf926aa9.

For more details https://forum.mattermost.org/t/solved-curl-differences-linux-windows/3784/7

steve-chavez avatar Oct 09 '19 14:10 steve-chavez

No longer a problem for a while since we show curl snippets on the API page

steve-chavez avatar May 08 '23 15:05 steve-chavez