Talk:Hello world/Web server: Difference between revisions

From Rosetta Code
Content added Content deleted
(Created page with "Is this supposed to be a server that does its own HTTP protocol, or just a CGI will do? --~~~~")
 
(it's about the server)
Line 1: Line 1:
Is this supposed to be a server that does its own HTTP protocol, or just a CGI will do? --[[User:Ledrug|Ledrug]] 21:49, 30 June 2011 (UTC)
Is this supposed to be a server that does its own HTTP protocol, or just a CGI will do? --[[User:Ledrug|Ledrug]] 21:49, 30 June 2011 (UTC)
: CGI is fine for producing the text, but starting a server program cannot be done outside of the task. A valid solution must show how to get a server process running. I was hoping a number of languages would be able to show off easy built-in or library support for this, but I didn't want to exclude languages where the easiest solution was to launch a copy of some existing server program. In this case, a valid solution must both generate the text to serve (writing it to a static text file would be fine) and start a server that will serve the text. —[[User:Sonia|Sonia]] 01:10, 1 July 2011 (UTC)

Revision as of 01:10, 1 July 2011

Is this supposed to be a server that does its own HTTP protocol, or just a CGI will do? --Ledrug 21:49, 30 June 2011 (UTC)

CGI is fine for producing the text, but starting a server program cannot be done outside of the task. A valid solution must show how to get a server process running. I was hoping a number of languages would be able to show off easy built-in or library support for this, but I didn't want to exclude languages where the easiest solution was to launch a copy of some existing server program. In this case, a valid solution must both generate the text to serve (writing it to a static text file would be fine) and start a server that will serve the text. —Sonia 01:10, 1 July 2011 (UTC)