I\'ve a few APIs I\'d like to test with cURL. I tried doing a GET as follows:
curl --user username:password --request GET http://my_domain/get_result/52d6428
To use the token with a get request, use
$CURL_BIN \ -H "$DJANGO_TOKEN" \ -X GET https://yourdjangowebsite.com/whatever/
I tried using -d with -X GET, however it resulted in weird socket behaviour on the server side (Heruko H18 errors).