If server uses HTTP 1.1 Gzip compression, how can I use the classes
generated using WSDL.exe.
I can do :
protected override WebRequest GetWebRequest(Uri uri)
{
WebRequest request = base.GetWebRequest(uri);
request.Headers.Add("Accept-Encoding", "gzip, deflate");
return request;
}
protected override WebResponse GetWebResponse(WebRequest request)
{
// and use System.IO.Compression.Gzip somehow ?!?!
}
I'm just not too sure how to override GetWebResponse so that it uses the
new IO.Compression Namespace.
Angel
John Saunders - 06 Oct 2006 18:38 GMT
> If server uses HTTP 1.1 Gzip compression, how can I use the classes
> generated using WSDL.exe.
Do you mean that the server uses gzip compression when you didn't ask for
it? Sounds broken.
John
Angel Of Death - 06 Oct 2006 18:44 GMT
>>If server uses HTTP 1.1 Gzip compression, how can I use the classes
>>generated using WSDL.exe.
>
> Do you mean that the server uses gzip compression when you didn't ask for
> it? Sounds broken.
Erm yes that is exactly right.
So I should complain to the WebMaster ;-)
John Saunders - 06 Oct 2006 22:40 GMT
>>>If server uses HTTP 1.1 Gzip compression, how can I use the classes
>>>generated using WSDL.exe.
[quoted text clipped - 5 lines]
>
> So I should complain to the WebMaster ;-)
Absolutely. Does this web server do the same thing with web pages?
John
Angel Of Death - 09 Oct 2006 11:59 GMT
>>>>If server uses HTTP 1.1 Gzip compression, how can I use the classes
>>>>generated using WSDL.exe.
[quoted text clipped - 7 lines]
>
> Absolutely. Does this web server do the same thing with web pages?
I'm guessing not, in that I am able to see the webpages correctly.