News for hackers. Stuff that matters.
Re:Storing all necessary data in the URL by cheald on Friday September 02, 2011 @01:06AM (#2952987)
I did something similar with a side project a little while back --

If you pull up http://shadowcraft.mmo-mumble.com/us/cenarion-circle/adrine/ you'll notice that all the state gets pushed onto the URL. This is actually a (very big) JSON data structure, packed into an array (to strip key data) and, where possible, with numbers compressed as base62. The whole thing is then deflated and base64-encoded. In that example up there, I have about 2kb of data compressed into 316 bytes. The URL is a bit ugly, but it means you can pass around the entire state in the URL.

There are no comments on this comment yet.