[Vienna-pm] javascript
Carl A. Schreiber
gooly at gmx.at
Sat Apr 2 03:13:42 PST 2005
Aha,
jetzt hab ich folgendes im html-text entdeckt:
<SCRIPT LANGUAGE="JavaScript">
document.cookie = 'adcount=1112439547916,!1,; domain=.barchart.com;
expires=Wednesday 09-Nov-05 12:34:56 GMT';
</SCRIPT>
und möchte das nun im cookiefile speichern.
Was davon (mein Zeilenumbruch aber dürfte ja egal sein):
'adcount=1112439547916,!1,; domain=.barchart.com;
expires=Wednesday 09-Nov-05 12:34:56 GMT'
und wie müßte ich das speichern, bzw. wie wird das durch 'document.cookie'
geschreiben, weiss das jemand?
Bei cpan hab ich natürlich HTTP::Cookie gefunden, das einzige wie mir scheint,
mit dem ich das setzen kann wäre das:
# $cookie_jar->set_cookie(
# $version, $key, $val, $path, $domain, $port,
# $path_spec, $secure, $maxage, $discard, \%rest )
# The set_cookie() method updates the state of the $cookie_jar.
# The $key, $val, $domain, $port and $path arguments are strings.
# The $path_spec, $secure, $discard arguments are boolean values.
# The $maxage value is a number indicating number of seconds that
# this cookie will live. A value <= 0 will delete this cookie.
# %rest defines various other attributes like "Comment" and "CommentURL".
aaber wie passt das von oben dazu? Ich kann nur $domain zuordnen.
Für Hinweise und/oder Beipiele wäre ich sehr dankbar,
Calli
More information about the Vienna-pm
mailing list