RE: Unable to post a gzip compressed data and get the response

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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
.



Relevant Pages

  • Re: getOutputStream() has already been called???
    ... this code doesn't really belong in a JSP. ... > I understand that it would be better suited for a servlet... ... > Thanks for the response. ... As for closing out: out.close ...
    (comp.lang.java.programmer)
  • Re: How Do I Turn A JSP Screen Into A File?
    ... That will work but certainly doesn't seem to be an easy way and in addition I will have to keep the data file in sync with any changes made to the jsp. ... response with your own response wrapper. ... the PrintWriter of the original reponse and to ...
    (comp.lang.java.programmer)
  • Re: return a dynamically created file with Tomcat5
    ... > I am trying to return a file to the user when a certain .jsp or ... For example if the user requests ... > return a response that sets the default file name to what I specify ...
    (comp.lang.java.programmer)
  • Unable to post a gzip compressed data and get the response
    ... 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. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: Writing JSP output to file
    ... slmlambert@hotmail.com (Dave Dave) wrote in message ... They will enable you to capture the ... > response of the JSP page, and then write it to a file/directory. ...
    (comp.lang.java.programmer)