[Dillo-dev]"Medium priority" "Make cookies into a dpi server" task
Hello. I like dillo proyect and i want to help in its develop. I have look at the current plans list of dillo developers and i think i can code the "Medium priority" "Make cookies into a dpi server" task. Is somebody intersted in it too? If we are more the work can be done fast an it is less to every one. I want to start a short talk in the list before coding it. what features do this task need-not need? I think that a good change can be to use the netscape-mozilla-firefox-galeon-etc cookies file format. So some utilities can work better with dillo. For example wget can use cookies in this format and wget is used by dillo. Or even use a external program that exist yet to manage cookies. (gtkcookie for example. I do not have test the program anyway) DarkSpirit/Diego
Hi Diego, On Sun, Apr 03, 2005 at 12:32:16AM +0200, Diego Sáenz wrote:
Hello. I like dillo proyect and i want to help in its develop.
I have look at the current plans list of dillo developers and i
Great. Qualified manpower is always welcomed. think i can code the "Medium priority" "Make cookies into a dpi server" task. Is somebody intersted in it too? If we are more the work can be done fast an it is less to every one. It has being waiting for a long time, so just pick it.
I want to start a short talk in the list before coding it. what features do this task need-not need? I think that a good change can be to use the netscape-mozilla-firefox-galeon-etc cookies file format. So some utilities can work better with dillo. For example wget can use cookies in this format and wget is used by dillo. Or even use a external program that exist yet to manage cookies. (gtkcookie for example. I do not have test the program anyway)
OK, it's no problem to change the cookies file format. The one you cite is plain text and quite straightforward. The main point of making cookies into a dpi is to allow every single different dillo running to do cookies. Currently only the first one is allowed to do it. (secondary gains are: dillo's core gets smaller. The dpi can be changed/improved independently). Basically it's a matter of getting cookies.c into a dpi and make the cookie request through dpip. Not that hard. Just look at the bookmarks dpi ('chat') and the hello example. Don't worry about the port to FLTK because dpis are independent of GUI toolkit, so they work perfectly untouched. I'd suggest you to create your own "fake" dpip commands (the minimum possible set), while developing and testing it, and after that you cantact me and I do the bindings. Thanks for your help offer, and welcome aboard. -- Cheers Jorge.-
Work done, almost the first version works and is ready to test. The patch works with current cvs. Please do an intensive test so bugs can be found fast. I am expecially interesting in the https cookies thing. A bad thing is that netscape cookies file format do not support ports for cookies, maybe with another file, maybe updating both files. Cookies are now managed out of dillo in the cookies.dpi and it uses a cookies file in netscape format so it can be used with other programs like for example wget. Between sessions the cookies get saved to ~/.dillo/cookies.txt, the old ~/.dillo/cookies is read too but not updated. Now cookies dpi have the state of the cookies and is the only that read and writes cookies.txt file. The diferent dillos running ask and send cookies to it. To minimize comunication between dpi and dillos all them read cookiesrc and only ask and send cookies for allowed sites. Cookies.dpi need to read cookiesrc so if a site is changed to deny cookies it deletes the cookies for that site in the cookies.txt file next time it load and write that file. All the work is implemented adding only three new dpi commands, two really, and a new send bloking dpi command function. When dillos wants the cookies for a site send the get_cookie dpi command to cookies dpi and this send the cookies in a get_cookies_answer dpi command. If an allowed site send a cookie dillos uses set_cookies dpi command to store the cookie in dpi. Use "dpidc stop" before changes to cookies.txt or cookies files or you can lost your changes. After cookies dpi reload the file all dillos will use the changes. If you changes the cookiesrc file use "dpidc stop" so cookies dpi reload the file. Only new opened dillos will use the changes. Diego/DarkSpirit
participants (2)
-
Diego Sáenz
-
Jorge Arellano Cid