I\'m using curl to test one of my Django forms. The calls I\'ve tried (with errors from each, and over multiple lines for readability):
(1):
curl -d
X-CSRFToken in headers just need be the same with csrftoken in cookie.
X-CSRFToken
csrftoken
Example:
curl -v http://www.markjour.com/login/ -H "X-CSRFToken: 123" -b "csrftoken=123" -d "username=admin&password=admin"