Jump to content

CURL Cookie File


The Little Guy

Recommended Posts

ok... I am running CURL, and it is making a cookie file... What does all this mean???

 

Here is the file contents:

# Netscape HTTP Cookie File
# http://www.netscape.com/newsref/std/cookie_spec.html
# This file was generated by libcurl! Edit at your own risk.

.myspace.com	TRUE	/	FALSE	1191688108	MSCulture	IP=208.97.167.27&IPCulture=en-US&PreferredCulture=en-US&Country=US&timeZone=0&ForcedExpiration=633266549089193265&USRLOC=QXJlYUNvZGU9NzE0JkNpdHk9QnJlYSZDb3VudHJ5Q29kZT1VUyZDb3VudHJ5TmFtZT1Vbml0ZWQgU3RhdGVzJkRtYUNvZGU9ODAzJkxhdGl0dWRlPTMzLjkyNjkmTG9uZ2l0dWRlPS0xMTcuODYxMiZQb3N0YWxDb2RlPTkyODIxJlJlZ2lvbk5hbWU9Q0E=
.myspace.com	TRUE	/	FALSE	0	SessionDDF1	90b6b4260b73447972f777e7c4842f07ca0204efa73a3000
.myspace.com	TRUE	/	FALSE	1106123297	MYUSERINFO	
.myspace.com	TRUE	/	FALSE	1106123297	USER	
creative.com	FALSE	/	FALSE	0	ASPSESSIONIDSCSSDTTD	ACJMCLJCFGAAKKFEGBELBMCJ

Link to comment
https://forums.phpfreaks.com/topic/71169-curl-cookie-file/
Share on other sites

http://www.cookiecentral.com/faq/#3.5

3.5 What are all those entries in my cookies.txt file?

 

The layout of Netscape's cookies.txt file is such that each line contains one name-value pair. An example cookies.txt file may have an entry that looks like this:

 

.netscape.com    TRUE  /  FALSE  946684799  NETSCAPE_ID  100103

 

Each line represents a single piece of stored information. A tab is inserted between each of the fields.

 

From left-to-right, here is what each field represents:

 

domain - The domain that created AND that can read the variable.

flag - A TRUE/FALSE value indicating if all machines within a given domain can access the variable. This value is set automatically by the browser, depending on the value you set for domain.

path - The path within the domain that the variable is valid for.

secure - A TRUE/FALSE value indicating if a secure connection with the domain is needed to access the variable.

expiration - The UNIX time that the variable will expire on. UNIX time is defined as the number of seconds since Jan 1, 1970 00:00:00 GMT.

name - The name of the variable.

value - The value of the variable.

 

And obviously wiki was pretty good reading, http://en.wikipedia.org/wiki/HTTP_cookie

And relevant rfc's:

http://www.faqs.org/rfcs/rfc2965

http://www.faqs.org/rfcs/rfc2109

Link to comment
https://forums.phpfreaks.com/topic/71169-curl-cookie-file/#findComment-357989
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.