Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SquallQL opened this issue Oct 8, 2020 · 0 comments
Open

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

SquallQL opened this issue Oct 8, 2020 · 0 comments

Comments

@SquallQL
Copy link

SquallQL commented Oct 8, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant