Updated Protocol draft 2.0 (markdown)

jonte 2011-02-02 11:23:00 -08:00
parent 5de630ec76
commit 0c5a2902c7

@ -1,7 +1,17 @@
The 2.0 specification is quite different from the old one. This one is based on a stable and mature protocol; HTTP. We will borrow certain elements from the protocol, with main focus on HTTP's POST style. Below is a typical POST message in HTTP.
POST /path/script.cgi HTTP/1.0
From: frog@jmarshall.com
User-Agent: HTTPTool/1.0
Content-Type: application/x-www-form-urlencoded
Content-Length: 32
<BLANK LINE>
home=Cosby&favorite+flavor=flies
Our protocol looks like the following:
Token: 1001
Command: define
Content-Type: text
Content-Length: 40
<BLAND LINE>
function helloWorld(x) {return x + 2 ;}