From 0c5a2902c7c64aad44ca1fc2f6d63ba070552606 Mon Sep 17 00:00:00 2001 From: jonte Date: Wed, 2 Feb 2011 11:23:00 -0800 Subject: [PATCH] Updated Protocol draft 2.0 (markdown) --- Protocol-draft-2.0.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/Protocol-draft-2.0.md b/Protocol-draft-2.0.md index af2f773..82e6ab7 100644 --- a/Protocol-draft-2.0.md +++ b/Protocol-draft-2.0.md @@ -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 - + home=Cosby&favorite+flavor=flies + +Our protocol looks like the following: + Token: 1001 + Command: define + Content-Type: text + Content-Length: 40 + + function helloWorld(x) {return x + 2 ;} \ No newline at end of file