in reply to Re^2: Read Compressed Post data
in thread Read Compressed Post data

Are you sure the data is gzipped? What happens if you save the input to a file and use file on it? What does it say? Can you uncompress it with gzip?

Replies are listed 'Best First'.
Re^4: Read Compressed Post data
by dkassemos (Novice) on Sep 01, 2009 at 14:55 UTC
    saving to file and guunzip results in invalid format The actual java code sending the data looks like this
    urlos = connection.getOutputStream(); if(compress) {bufos = new BufferedOutputStream(new GZIPOutputStream(urlos)); } else { bufos = new BufferedOutputStream(urlos);
    so I assume that the data is GZIP compressed before being sent by java app and the switch to not use compress was not coded so it is always compressed
      Well, if what you get isn't actually uncompressable with gunzip, then it could very well be that it's not actually in gzip format, is it?