Hi,
I'm trying to write an application that can run on an internet server or on
a local machine and uses a web browser as the interface in both contexts.
For the local context, what I need is a small, reliable web server that can
serve as a link between my Perl script and the browser. The whole program,
server included, has to be easy for anyone to install, even if he or she
doesn't have much computer knowledge.
I have thought about using Apache, but that seems like overkill, and I have
no idea about how easy it might be to make it install correctly, safely and
automatically.
I have also tried writing a little server in Perl using HTTP::Daemon. This
works to some extent, but browsers hang in many situations. I think this
is because the server does not fork, but rather handles connections one by
one, in the order received. If the browser tries to open more than one
connection in order to simultaneously get various files for a given page
(say, the main html document and the associated style sheet), it finds that
it can only open one connection at a time, and hangs when it wants to get
all of the second file it requested (say, the style sheet) before accepting
all of the first file (say, the html document). Or at least, this is what
I suspect is happenning; I have no solid evidence. In any case, I re-wrote
the server using fork() in order to handles multiple simultaneous
connections. However, this caused the program to crash left right and center.
Any suggestions?
Thanks in advance,
Andrew Green
Durito project: http://durito.sourceforge.net
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web