sending a cookie with newLISP

Started by nigelbrown, April 10, 2004, 07:00:56 PM

Previous topic - Next topic

nigelbrown

I was looking a automatic checking for topic updates on this forum by get-url and regex for folder-new.gif as there are only 2 if no new topics so

(length (parse (get-url "http://www.alh.net/newlisp/phpbb/index.php">http://www.alh.net/newlisp/phpbb/index.php") "folder_new.gif"))

is 3.

However, to be logged in to see if there are new posts since my last vist/check I guess I have to send and receive cookie type info - I've looked around a bit and will look some more but hoped someone may have a quick answer on how to do cookies with newlisp?



I see the httpd server example says:

; handles cgi but no cookies



Nigel

Lutz

#1
Look into the distribution file: modules/cgi.lsp for the routines: CGI:get-cookie and CGI:set-cookie. The program newlisp-blog-33.tgz make extensive use of these. In the file index.cgi grep for the same routines to see how they are used.



You also can use the newLISP function (post-url ...) to automate the dialog with http://www.alh.net">www.alh.net when filling out forms.



Lutz