Curl: How to insert value to a cookie?
Posted
by
Crazy_Bash
on Stack Overflow
See other posts from Stack Overflow
or by Crazy_Bash
Published on 2012-10-09T15:26:29Z
Indexed on
2012/10/09
15:37 UTC
Read the original article
Hit count: 160
Ho to insert cookies value in curl? from firebug "request headers" i can see in the following "Cookie: PHPSESSID=gg792c2ktu6sch6n8q0udd94o0; was=1; uncheck2=1; uncheck3=1; uncheck4=1; uncheck5=0; hd=1; uncheck1=1"
I have tried the following:
curl http://site.com/ -s -L -b cookie.c -c cookie.c -d "was=1; uncheck2=1; uncheck3=1; uncheck4=1; uncheck5=0; hd=1; uncheck1=1" > comic
and the only thing i see in cookie.c is
PHPSESSID=gg792c2ktu6sch6n8q0udd94o0; was=1;
© Stack Overflow or respective owner