When such a connection is made, call a world proc like Topic(), or more preferably, a new proc. (WebRequest()?) If it returns a string, that would be the body. If a list, then the add the headers that are in the list, with "CONTENT" for the body.
This could really add some nice browser-based features to a game. High scores viewable from a web side, administrative control from a remote computer (idea by Polatrite), AJAX for communication with popups. (Not sure what protocol that uses really, if it even matters.)
Paramiters I'd like in the procedure:
- The full GET data.
- GET data in list form. (Optional)
- The same for POST data. (Optional, but could be really nice.)
- The IP of the client.
- A /client, if the IP matches that of a client.
- Whatever header data that could be used.