How do I use newLISP in HTTP mode?

Started by dukester, April 20, 2009, 05:06:52 PM

Previous topic - Next topic

dukester

Before I ask my question, I'd like to say that I'm familiar with using CGI with Apache along with Perl/PHP.



I have seen some examples on how to "invoke" newLISP in HTTP mode, but then what? Should I see something in my browser? Do I have to shutdown Apache first? Which port does HTTP newLISP listen to, 80 or 8080 or something else?



Tim Johnson: jump in, if you date ;)

TIA....
duke

dukester

#1
I found what I needed to know! Port 4711 it is, like:



http://localhost:4711//usr/share/doc/newlisp/newlisp_manual.html">http://localhost:4711//usr/share/doc/ne ... anual.html">http://localhost:4711//usr/share/doc/newlisp/newlisp_manual.html



If anybody have any further tips/suggestions and/or recommendations, the line forms to the left. Thanks!
duke

Lutz

#2
Here are some hints about using newLISP in HTTPD mode:



http://www.newlisp.org/newlisp_manual.html#http_mode">http://www.newlisp.org/newlisp_manual.html#http_mode



and some more advanced topics here:



http://www.newlisp.org/CodePatterns.html#http_mode">http://www.newlisp.org/CodePatterns.html#http_mode

Tim Johnson

#3
Nice of Duke to think of me. I've been doing CGI since 1996 - it's my

bread-and-butter, but have only done some proof-of-concepts with

newlisp/CGI.



I primarily use newlisp for an application that FTPs and sychronizes

projects to remote servers.



But what really interests me is this:



http://www.newlisp.org/index.cgi?page=S-expressions_to_XML">http://www.newlisp.org/index.cgi?page=S ... ons_to_XML">http://www.newlisp.org/index.cgi?page=S-expressions_to_XML



First chance I get, I'm going to try to see how that code handles

inserting HTML attributes. I did write a newlisp "html dialect" but

it is 160 lines of code and a pain in the arse to use.



Duke I hope Lutz got you pointed in the right direction.

cheers

tim
Programmer since 1987. Unix environment.

dukester

#4
Quote from: "Tim Johnson"Nice of Duke to think of me. I've been doing CGI since 1996 - it's my

bread-and-butter, but have only done some proof-of-concepts with

newlisp/CGI.



[snip]



Duke I hope Lutz got you pointed in the right direction.

cheers

tim


So far so good! I now know where to go if I need help and after I've RTFM. ;) Pardon my French...
duke