Development – Leet 4 Life

Software Development Code Samples and More

Skip to: Content | Sidebar | Footer

Tag: Decompress

Compress and Decompress String Using GZIP Compression

29 May, 2012 | C#. NET | By: Michael Merrell

Recently I ran into an issue where data I was sending into a cookie was causing the following exception: “A potentially dangerous Request.Cookies value was detected from the client”. Rather than removing the validation from the page so that it wouldn’t threw an error I looked into another method in order to keep the page validated and keep my functionality in place. I decided that the best way to get the text that I wanted to transfer through a cookie, in this case an exception stack trace, would be to compress the string and then simply send the compressed string [Read More…]