I’m trying to send a post request through curl so I ran
curl --cookie /tmp/cookies.txt --cookie-jar /tmp/cookies.txt --data "name=value" http://www.mysite.com > post_request.txt
where I stored in /tmp/cookies.txt the cookie I found in my chrome’s console. In the latter there were a name and a value. Is there a specific format I should use to write the cookie parameters in /tmp/cookies.txt? (because I only put the value and it didn’t work)
Looking at the man page for curl it says:
Looking up the mozilla format you find:
http://xiix.wordpress.com/2006/03/23/mozillafirefox-cookie-format/
(tab delimited)
(You could of course also just use the plain HTTP headers as stated.)