Unable to post a gzip compressed data and get the response
- From: Baskar <Baskar@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 01:58:06 -0700
Hi,
I need to access a jsp page from .net compact framework application.
The jsp page supports gzip format and it is deployed in Tomcat server.
I am using "ICSharpCode.SharpZipLib" dll for gzip compression & decompression.
I tried to post a compressed data in gzip format and when i decompress the
response i am getting
"Deflated stream ends early" exception in the .net cf application.
For HttpWebRequest, i have set the following,
req.Headers.Add("Accept-Encoding", "gzip, deflate");
req.Method = "POST";
req.ContentLength = (long)postData.Length;
req.ContentType ="application/x-zip";
But ,I am able to post data using webrequest and am able to get the response
from the server without using the gzip compression.
Thanks
.
- Follow-Ups:
- RE: Unable to post a gzip compressed data and get the response
- From: Alex Yakhnin [MVP]
- RE: Unable to post a gzip compressed data and get the response
- Prev by Date: documentation
- Next by Date: multiple form navigation
- Previous by thread: documentation
- Next by thread: RE: Unable to post a gzip compressed data and get the response
- Index(es):
Loading