Talk:Hello world/Web server: Difference between revisions

http requirement?
(http requirement?)
Line 20:
"Multiple" means "simultaneously" or "sequentially"? I suggest leaving this up to the coders, but make it clear, since this task it self doesn't really need to involve forking or threads. --[[User:Ledrug|Ledrug]] 00:42, 2 July 2011 (UTC)
: Good point. For Hello World, I should think sequentially should be fine. —[[User:Sonia|Sonia]] 01:38, 2 July 2011 (UTC)
 
== does the task mandate HTTP/1.0 or above ==
The task description should specify if the server should implement HTTP/1.0 or above, currently some examples implement a plain socket that returns one text line, which is possible in HTTP 0.9, but is not valid in current clients. E.g. in the Java server, curl and wget:
 
<pre>wget http://localhost:8080
--22:36:36-- http://localhost:8080/
=> `index.html.2'
Resolving localhost... done.
Connecting to localhost[127.0.0.1]:8080... connected.
HTTP request sent, awaiting response...
Read error (No such file or directory) in headers.
Retrying.
</pre>
<pre>curl -i localhost:8080
curl: (56) Failure when receiving data from the peer
</pre>
Anonymous user