Updated Protocol draft 2.0 (markdown)
parent
5de630ec76
commit
0c5a2902c7
1 changed files with 11 additions and 1 deletions
|
@ -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
|
POST /path/script.cgi HTTP/1.0
|
||||||
From: frog@jmarshall.com
|
From: frog@jmarshall.com
|
||||||
User-Agent: HTTPTool/1.0
|
User-Agent: HTTPTool/1.0
|
||||||
Content-Type: application/x-www-form-urlencoded
|
Content-Type: application/x-www-form-urlencoded
|
||||||
Content-Length: 32
|
Content-Length: 32
|
||||||
|
<BLANK LINE>
|
||||||
home=Cosby&favorite+flavor=flies
|
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 ;}
|
Reference in a new issue