Cookies, cookies.txt format, and Python, Perl or Java...?

koppe74

New member
I want to make a script (under linux) for automatically downloading stuff from a web-page, and need to send a cookie to the site. Or I may create a cookies.txt file and use wget...

I've logged-in to the site in Opera, and viewing the cookie in the cookie-manager gives me values for server (xxxx.xxx), name (bd), value (05%2F15%2F1990), expires (2011-06-17 17:21:23), last visited (2010-06-17 17:22:30), secure (No), only sent to creator (No), and version (0).

What is the correct format for a cookie.txt file with one line, using this information? Any sites with the standard?

Is there a way to send a cookie like this in Python, Perl or Java? Is there a way to get Python, Perl and Java to handle cookies in general (both sending and receiving)? (I'm here thinking most about which modules I must include to get this functionality.)
 
Back
Top