Kamis, 05 Agustus 2010
GZip your downloads
Gonzalo yesterday pointed me to a feature in the HTTP client stack for .NET that I did not know about.If you want the server to gzip the response before sending it to you, set the AutomaticDecompression flag in your HttpWebRequest: var request = (HttpWebRequest) WebRequest.Create (uri); request.AutomaticDecompression = DecompressionMethods.GZip; This will set the Accept-Encoding HTTP header to
Langganan:
Posting Komentar (Atom)
Tidak ada komentar:
Posting Komentar