I want to create a mechanism (in C#) where text from a QueryString is displayed on a website.
For example, in C# I might literally do;
public void Page_Load(blah)
{
litSomething.text = Reques.QueryString["msg"];
}
Assume that the message is written in English (allowing UTF8 would be nice), and is no longer than say 1000 characters. I want to compress this text down as much as possible and still be able to place it in a QueryString.
We can predefine as many dictionary terms as we like (well with-in reason?). The server side code will encode and decode the messages.
(Obviously I'll be adding in all the usual XSS protection, HttpUtitlity.HtmlEncode etc type stuff. Also pointers to free dictionary sources would be good!)
Any tips, adivce, source code? This isn't my homework before you ask!
Update
Thanks for the suggestions. I want to make this a GET, so people IM/email URLs. Im thinking along the lines of bit.ly which would also be a cheat in itself. Wanted this to be a generic "short text compression" question though.