4 ms·
The goal is to use it in a URL. I don't want my urls to look like that: http://db.mmo-champion.com/items/#eyJ1c2VyIjp7Im5hbWUiO iJCb2IgU21pdGgiLCJhZ2UiOjQ3
by vjeux 15y ago
The goal is to use it in a URL. I don't want my urls to look like that:
http://db.mmo-champion.com/items/#eyJ1c2VyIjp7Im5hbWUiO
iJCb2IgU21pdGgiLCJhZ2UiOjQ3LCJzZXgiOiJNIiwiZG9iIjoiNS0x
Mi0xOTU2In0sInBhc3RpbWVzIjoNClsiZ29sZiIsIm9wZXJhIiwicG9
rZXIiLCJyYXAiXSwiY2hpbGRyZW4iOnsiYm9iYnkiOnsiYWdlIjoxMi
wic2V4IjoiTSJ9LA0KInNhbGx5Ijp7ImFnZSI6OCwic2V4IjoiRiJ9f
X0
- sethg 15y agoIf you want to pack that much information into a URL, it’s going to look ugly no matter how it’s formatted. (I assume you have some reason for not just passing a session key in the URL and keeping all the relevant state on the server.)