CURL cookie.txt file format

CURL autogenerate file cookie.txt:

# Netscape HTTP Cookie File
# This file was generated by libcurl! Edit at your own risk. FALSE / FALSE 0 PHPSESSID 8dcolkh52m2eo4rv61aolurjd7 TRUE / FALSE 1342341229 ff_referrer_hash HDAgPzI FALSE / FALSE 0 PHPSESSID qjv4u6g6k20s8brar2o17msk26 FALSE / FALSE 1342401324 last_file_downloaded b5b7gbwq FALSE /files/9q5hajyh/ FALSE 1341997367 pop 0 FALSE /files/qb4djjwe/ FALSE 1341997777 pop 0 TRUE / FALSE 0 SID v2j5g30qbv7e1pnrggj91scvo6 TRUE / FALSE 1420092061 ssui e1ec529601a02c1e5f7867a0981dc36a FALSE / FALSE 0 PHPSESSID k8g68jsrv5325s2ech5s1ku343 TRUE / FALSE 0 PHPSESSID o5v8uc5uap39feotra1occ1la7 TRUE / FALSE 0 uprand 50e6b69e09474e677862811eab4463be TRUE / FALSE 0 sess kr2avsh7j1io9z4xwcgd FALSE / FALSE 0 PHPSESSID 3tbm88h8qjqaaeed58mscji8d2 FALSE / FALSE 0 JSESSIONID F2D369B3665C0B84AA0E7EF357806DC9 FALSE / FALSE 0 JSESSIONID F45FCFD56CD2F36AA57BAD00025FE3A2 FALSE / FALSE 0 SERVERID w6x FALSE / FALSE 0 PHPSESSID m7rjljen96gobo2sn44ido2ho0 FALSE / FALSE 0 SERVERID w4x FALSE / FALSE 0 PHPSESSID e937c42549ea2a3c3391f06d9e734eec TRUE / FALSE 1343383415 affiliate_hash JzsXi5g TRUE / FALSE 0 PHPSESSID 57be3956c763fee9c7f1abce9ab5c639

Basically, you have a line in the file that looks like: FALSE / FALSE 0 CNAME value

  • – The domain that the cookie applies to
  • FALSE – can other webservers within access this cookie? If there was a webserver at, could it see this cookie? If the domain begin with “.”, this value is TRUE
  • / – more restrictions on what paths on can see this cookie. Anything here and under can see the cookie. / is the least restrictive, meaning that any (and all) requests from get the cookie header sent.
  • FALSE – Do we have to be coming in on https to send the cookie?
  • 0 – expiration time. zero probably means that it never expires, or that it is good for as long as this session lasts. A number like 1420092061 would correspond to a number of seconds since the epoch (Jan 1, 1970). If this value equal to 0, cookie don’t expire
  • CNAME – The name of the cookie variable that will be send to the server.
  • value – cookie value that will be sent. Might be comma separated list of terms, or could just be a word.. Hard to say. Depends on the server.

Recent search terms:

  • curl cookie file format

Leave a Reply