[Haskell-cafe] JavaScript in a browser as a Windows GUI?

Andrew Coppin andrewcoppin at btinternet.com
Fri Oct 22 13:05:36 EDT 2010


  On 21/10/2010 07:00 PM, Jeremy Shaw wrote:
> But, you are correct that happstack does not currently have support
> for running CGI executables. I imagine that you could write a CGI
> handler (with out modifying the core code) in a few hours (maybe
> less). Mostly just a matter of turning the values in the Request type
> into a environment variables, and calling the executable?

And writing a HTTP server is "mostly" a matter of parsing the request 
headers and constructing some response headers. However, this turns out 
to be significantly less easy to do properly than you'd first imagine. ;-)

> That said, I am not sure why you want CGI.

Because my hired web server runs Apache?

Sure, if I'm only doing stuff on the local machine, I can use any kind 
of server/application linkage I like, because I can use any server I 
want. But if I ever decide to actually put this stuff on the web, for 
real, it'll have to be plain CGI. (Or maybe FastCGI is supported, I'm 
not actually sure...) That being the case, I might as well develop it as 
CGI to start with.



More information about the Haskell-Cafe mailing list