GET Request With Parameters In CURL

- 1 answer

I send a request to the Shopify api in javascript to the following url:'

and it works perfectly. I get exactly the request order, everything works find.

If I do the same in curl with the following command:

curl -k

I get all orders, as if I haven't use the parameter id=12334445.

How do I correct the command in curl to get only the order with the specific id?



I found the answer by using the verbose mode and reading this post: How to include an '&' character in a bash curl statement

The url needs to be in quotes "", because of the ampersand being converted, if not in quotes.