How to decode gzip response
Posted: Fri Jun 14, 2019 1:29 pm
Hopefully I am missing something very simple.
Doing a basic WebClient.DownloadString() call to get a text file. Using Fiddler, it looks like I get a gzip of that text file. Which isn't so very string-like. (Fiddler offers to decode it, and then I can see the return that I want.) In a WPF use of the same code, the string gets returned to me whole, not encoded.
How do I decode it to UTF-8? (Or avoid the gzip?)
I found the ZipFile Extension, but don't see an exposed call there to upzip the return.
Doing a basic WebClient.DownloadString() call to get a text file. Using Fiddler, it looks like I get a gzip of that text file. Which isn't so very string-like. (Fiddler offers to decode it, and then I can see the return that I want.) In a WPF use of the same code, the string gets returned to me whole, not encoded.
How do I decode it to UTF-8? (Or avoid the gzip?)
I found the ZipFile Extension, but don't see an exposed call there to upzip the return.