[Haskell-cafe] Re: using Network.CGI
Anders Kaseorg
andersk at MIT.EDU
Fri Aug 6 16:46:23 EDT 2010
On Fri, 6 Aug 2010, Andrew U. Frank wrote:
> i think this limits what network.cgi can be used for: it will work only
> on systems, where the output from the ghc can execute.
That’s not a limitation of Network.CGI; it’s just the way CGI always
works, no matter what language you use.
http://en.wikipedia.org/wiki/Server-side_scripting
> specifically, this means, i cannot move the executable to an android
> mobile phone and use it there (assuming that there is a web server, e.g.
> i-jetty, which understands cgi (does it?)). is this correct?
You’d need a Haskell compiler that targets Android; I don’t know whether
such a thing exists yet.
(Of course, keep in mind that if the CGI script is running on another
computer, such as <http://andersk.mit.edu/greet.cgi> , you will still be
able to visit it and use it from a browser running on Android. That’s the
point of CGI; only the server needs to know how to run the code.)
Anders
More information about the Haskell-Cafe
mailing list