cookie save to disk possible ?

Artur arturjarosik at gmail.com
Sat Jul 17 21:35:27 BST 2010


Hi,

2010/7/17 Artur <arturjarosik at gmail.com>

> Hi,
>
> I have implemented cookies.c from AmigaOS4 frontend and
> cookies file look like this:
>
> # >Progdir:Resources/cookie
> # NetSurf cookies file.
> #
> # Lines starting with a '#' are comments, blank lines are ignored.
> #
> # All lines prior to "Version: 101" are discarded.
> #
> # Version Domain Domain from Set-Cookie Path Path from Set-Cookie Secure
> Expires Last used No destroy Name Value Value was quoted Scheme URL
> Comment
> Version: 101
> 0 .google.pl 1 / 1 0 1342461467 1279397025 0 PREF
> ID=3D17972ee9cadf64c0:U=3D7bdc2c067431d93e:TM=3D1279389408:LM=3D127938946=
7:S=3DhZUJPvO1kSf7b7RR
> 0 unused unused
> 0 .google.pl 1 / 1 0 1295200608 1279397025 0 NID
> 36=3DMdfhD5AaOhTQqo81b3UHolVKxvJIvBWbQ-DYXFb3xvgm2wj5cRUKVgwuRO2DvBkFD2-h=
-wB3_DDeeMR3CoMiLX5mms_Oj1sZOu4v90Yeb4bH2Llk5fzyQRre7a8KwP8u
> 0 unused unused
> 0 .google.com 1 / 1 0 1342461467 1279397024 0 PREF
> ID=3Dcbda23c368db6bd8:U=3De28223eea95a0cef:TM=3D1279389408:LM=3D127938946=
7:S=3DHZXREUORixoE5CZz
> 0 unused unused
> 0 .google.com 1 / 1 0 1295200608 1279397024 0 NID
> 36=3DGwZTgij5m-JtrC6unLVgUGfIK9_EXpZ5cur-ctnYSR6A1VMSuMoEdGuA-ByHRmCiUx6G=
iJYj1Z9fcy0RcSoCeR2vynSRiFkg0oY9PElrARRQd3szQ7VCwASYn_Wt2cUA
> 0 unused unused
>
> There is more information than in Bernd's cookie but how to know if it is
> loaded  at start ?
>
>         if (fb_font_init() =3D=3D false)
>                 die("Unable to initialise the font system");
>
>         fbtk =3D fbtk_init(nsfb);
>
> + urldb_load_cookies(option_cookie_file);
> +      ami_cookies_initialise();
>
>
> void gui_quit(void)
> {
>         LOG(("gui_quit"));
>      CloseLibrary(DosBase);
>         framebuffer_finalise();
>
> + urldb_save_cookies(option_cookie_file);
> + ami_cookies_free();
>
>
>
No, I have set path to cookie file : Progdir:Resources/cookie
SnoopDos show access on start so I assume it is loaded as it should.

cookies.c  from Chris port compiles here. There is no OS4 specific code.
See misc.c in framebuffer folder:

bool cookies_update(const char *domain, const struct cookie_data *data)
{
    return true;
}

It does nothing so I replaced it with one from cookies.c .

Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://vlists.pepperfish.net/pipermail/netsurf-dev-netsurf-browser.org=
/attachments/20100717/55469b08/attachment-0001.htm


More information about the netsurf-dev mailing list