I want to pass a query string with an object to my REST server, I’ve seen website append long strings in the URL, this string contains many letters, it looks like ASP.NET view state string
How can I do this kind of thing in C#
I guess this is some kind of hashing and de-hashing or some sort of standard byte encoding.
Thank you.
You can use base64 encoding on the JSON representation, using
Convert.ToBase64Stringand transmit that.This will add about 30% to the length of the data on average, though.