|
Subject:
|
HttpVersion.Version10 and compression
|
|
Posted By:
|
richardkr
|
Post Date:
|
4/23/2008 11:47:43 AM
|
Hello All, We are using .Net 1.1 as a web service client behind a proxy. To solve connection issues, we have followed advice in this forum and others and added
request.KeepAlive = false; request.ProtocolVersion = HttpVersion.Version10;
to our code, which worked and solved our problem. Now to improve performance we are trying to get Decompression to work. In .Net 2.0 it is very easy, just add EnableDecompression=true, but in 1.1 there are some hoops to go through. We found the answer at http://basildoncoder.com/blog/category/development/coding/dotnet/ This works but only if we do not set request.ProtocolVersion = HttpVersion.Version10;
Is there a way around this or do we have to choose between compression or a connection that works?
Thanks for any insight, Richard
|
|
Reply By:
|
richardkr
|
Reply Date:
|
4/23/2008 4:15:11 PM
|
The solution is to edit the metabase.xml and change HcNoCompressionForHttp10 to be false. Then restart the IIS server.
|
|