block by joyrexus cab037a71e8fa7497ad7

query strings with curl

Note that you can do a GET request to construct query strings with curl.

# GET http://acme.org/tasks?status=overdue&since=today
curl --get http://acme.org/tasks -d status=overdue -d since=today

# GET http://httpbin.org/get?status=overdue&since=today&contains=bob%20jones
curl -d status=overdue                       \
     -d since=today                          \
     --data-urlencode "contains=bob jones"   \
     -G http://acme.org/search 

request.sh

result.json