M
Marcantonio
Hi,
I am downloading a webpage from IIS and I want to take advantage of
compression to reduce GPRS costs and download time.
I am using the following code. However, it seems that the
"Accept-Encoding" header is not really sent to the webserver:
Dim mySB As StringBuilder = New StringBuilder
Dim request As HttpWebRequest = CType(WebRequest.Create(strUrl),_
HttpWebRequest)
request.Headers.Add("Accept-Encoding", "gzip,deflate")
Dim response As HttpWebResponse = CType(request.GetResponse,_
HttpWebResponse)
...the IIS webpage *is* able to deliver compressed content, I checked
with the following tool:
http://www.gidnetwork.com/tools/gzip-test.php
Any ideas?
(using: vstudio2005, cf 2.0, ppc 2003)
Marcantonio
I am downloading a webpage from IIS and I want to take advantage of
compression to reduce GPRS costs and download time.
I am using the following code. However, it seems that the
"Accept-Encoding" header is not really sent to the webserver:
Dim mySB As StringBuilder = New StringBuilder
Dim request As HttpWebRequest = CType(WebRequest.Create(strUrl),_
HttpWebRequest)
request.Headers.Add("Accept-Encoding", "gzip,deflate")
Dim response As HttpWebResponse = CType(request.GetResponse,_
HttpWebResponse)
...the IIS webpage *is* able to deliver compressed content, I checked
with the following tool:
http://www.gidnetwork.com/tools/gzip-test.php
Any ideas?
(using: vstudio2005, cf 2.0, ppc 2003)
Marcantonio