Escaping Hash Characters and Other Symbols in cURL

If you are trying to make a cURL request that contains special characters, such as the requests required by Shopify's fetch tracking process, you can use the --data-urlencode flag for each parameter. An example call is below:

curl -G -v "http://api.lvh.me:3000/v2/fetch_tracking_numbers.json" \
--data-urlencode "order_names[]=#1001.1" \
--data-urlencode "order_names[]=#1002.1" \
--data-urlencode "order_names[]=#1003.2"