Skip to content

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

@SquallQL

Description

@SquallQL

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions