How do I use newLISP in HTTP mode?

Q&A's, tips, howto's
Locked
dukester
Posts: 115
Joined: Tue May 08, 2007 1:06 pm
Location: Alberta, Canada

How do I use newLISP in HTTP mode?

Post by 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
Posts: 115
Joined: Tue May 08, 2007 1:06 pm
Location: Alberta, Canada

Post by dukester »

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

http://localhost:4711//usr/share/doc/ne ... anual.html

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

Lutz
Posts: 5289
Joined: Thu Sep 26, 2002 4:45 pm
Location: Pasadena, California
Contact:

Post by Lutz »

Here are some hints about using newLISP in HTTPD mode:

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

and some more advanced topics here:

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

Tim Johnson
Posts: 253
Joined: Thu Oct 07, 2004 7:21 pm
Location: Palmer Alaska USA

Post by 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.

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 ... ons_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

dukester
Posts: 115
Joined: Tue May 08, 2007 1:06 pm
Location: Alberta, Canada

Post by dukester »

Tim Johnson wrote: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

Locked