RE: Unable to post a gzip compressed data and get the response
- From: Alex Yakhnin [MVP] <a.yakhnin@xxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 07:11:02 -0700
Take a look at these resourses:
http://blog.opennetcf.org/ayakhnin/PermaLink.aspx?guid=7ce7be20-ff09-4d38-b53f-018654c287d0
http://www.flowgroup.fr/tech_compressionHTTP_us.htm
--
Alex Yakhnin, .NET CF MVP
www.intelliprog.com | www.opennetcf.org
"Baskar" wrote:
> 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
.
- References:
- Prev by Date: Re: Mouse coordinates in a PictureBox window
- Next by Date: Re: Low Battery Shutdown, Installation, Full Screen, etc...
- Previous by thread: Unable to post a gzip compressed data and get the response
- Next by thread: multiple form navigation
- Index(es):
Relevant Pages
|