Skip to content

ChenServer_http_limitations

Don Cross edited this page Jun 28, 2015 · 1 revision

ChenServer HTTP GET limitations

The ChenServer program currently supports a very limited HTTP GET functionality. It does not support Ajax calls. The client is allowed to send a request header followed by a blank line, but nothing after the blank line. Here is an example of a valid request header for thinking about a move for 1 second (1000 ms) and the resulting HTTP response.

Sample Request

GET /think+1000 HTTP/1.1
Host: localhost:1234
Connection: keep-alive
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
User-Agent: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/43.0.2357.130 Safari/537.36
Accept-Encoding: gzip, deflate, sdch
Accept-Language: en-US,en;q=0.8,es;q=0.6

Sample Response

HTTP/1.1 200 OK
Date: Sun, 28 Jun 2015 00:28:15 GMT
Content-Type: text/plain
Content-Length: 12

OK c2c4 c4