Setting Cookies in test-restful-service?

In the test-restful-service function - how do we pass cookies? Specifically, I'm trying to pass a Django csrftoken. For example, this works in curl (after having logged into Django and cut/paste the values):

curl -d "user=jc&password=password&csrfmiddlewaretoken=AAA" –cookie "csrftoken=AAA;sessionid=BBB" http://127.0.0.1:8000/admin/

Some fields, like user/password, obviously go in the Request Parameters box. But I've tried putting the csrftoken and sessionid there, with several variations, and no success.

John C>

Please sign in to leave a comment.