treflehq / documentation

The Trefle API documentation and reference
https://docs.trefle.io
59 stars 20 forks source link

Error in example with curl and bracket in url param #10

Open SquallQL opened 3 years ago

SquallQL commented 3 years ago

Hi,

So I was following along the curl tutorial with curl and I got an error when doing the first call with a query param

curl: (3) bad range in URL position

Which happens because curl can't take the bracket by default, so you need to pass the -g or --globoff flag to make the call works.

To reproduce, make this call through curl:

curl 'https://trefle.io/api/v1/plants?token=YOUR_TOKEN&filter[common_name]=beach%20strawberry'

Notice the error. Then run the same command, but add the -g flag and it works!