×

Discussion Board

Results 1 to 6 of 6

Thread: gzip In Http

  1. #1
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    gzip In Http

    Hi all,
    Does the j2me http Apis supports gzip encoding and decoding atometically ? I have tried setting the header as Accept-Encoding: gzip using http , It is sending the Accept-Encoding: gzip and I am receiving the gziped content as it is it is not decoding and giving the gziped content . please give some comments and suggestion on this.

  2. #2
    Nokia Developer Champion
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,192

    Re: gzip In Http

    You need to send the data without gzip.

    Hartti

  3. #3
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: gzip In Http

    Hi hartti,
    Thanks for your comments, My question here is if I send the Accept-Encoding as gzip server is sending the gziped content but j2me Http connection will not decode and give the gziped content is there any way we can tell the Http Connection to say this is gziped content decode it and use . Is all mobile browsers will support the gzip and they will understand the gzip by default?

  4. #4
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: gzip In Http

    Hi ,
    This issue get solved thanks hartti for your comments , I use the gzip library to decode my gziped content you can fins the library http://www.java4ever.com/index.php?s...enu=main&lang= It is very small jar file which solve my problem.

  5. #5
    Registered User
    Join Date
    May 2009
    Posts
    43

    Re: gzip In Http

    Hey bhanuchandar.k ... sorry for bothering you regarding 3 months old post, but could you be so kind and paste me some code you use in your app regarding GZIP library?

    I'm always geting Invalid GZIP format when trying to inflate received data from server. I've set request header Accept-Encoding: gzip and the response looks like gzipped content.

    thanks in advance

    Damjan

  6. #6
    Registered User
    Join Date
    Sep 2007
    Location
    Bangalore
    Posts
    868

    Re: gzip In Http

    Hi Damjan,
    I'm always geting Invalid GZIP format
    This Exception will come only if you are trying to unzip the GZIPPED content . But The content is not GZIPED . Some times it will happens like you will be enabled the mod GZIP but It is not ZIPED , At the client side you will be receiving the content encoding as GZIP, But the content is not ZIPED. To verify this , Write your response data in to one file , and With the external Zip utilities like widows zip or linux zip command you do the unzip and check the content.

Similar Threads

  1. HTTP Connection behaviour when 3G connection is lost (or being lost)
    By TwmD in forum Mobile Java Networking & Messaging & Security
    Replies: 6
    Last Post: 2010-01-27, 12:36
  2. How can I call http session simultaneously?
    By gusta72 in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-10-19, 19:58
  3. How can I process http sessions at a time?
    By gusta72 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-10-17, 08:29
  4. Replies: 2
    Last Post: 2006-10-06, 17:24
  5. HTTP Client - Synchronous HTTP POST Calls?
    By symbian_ravi in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-04-16, 11:51

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •