2 ms·
If the token is passed as a url parameter in a get request, -G can be useful as it forces the -d key=value switches to append to the url. So that: curl -G '
by tyingq 5y ago
If the token is passed as a url parameter in a get request, -G can be useful as it forces the -d key=value switches to append to the url. So that:
curl -G 'https://api.example.com' \
-d foo=bar \
-d baz=whee
Is the same as
curl 'https://api.example.com?foo=bar&baz=whee'
That can make all the quoting hell a bit easier, as you're doing it one param at a time.