On 14/05/2008, David Castañeda <[EMAIL PROTECTED]> wrote: > Hi all, I hope someone can help me with this case... > > I have a java application (both client and server) client is a swing > application that communicates with httpclient using serialization. (requests > are POST). I'm trying to use JMeter proxy to capture the connection between > HTTPClient and the server, actually I don't know if this can be done with > JMeter, my understanding is this would be just a POST request to the server, > but... > > The request (sampler) in JMeter test plan is created but ... when trying to > execute the sampler saved by JMeter Proxy the server returns > > java.io.IOException: Not in GZIP format > > java.util.zip.GZIPInputStream.readHeader(GZIPInputStream.java:137) > > java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:58) > > java.util.zip.GZIPInputStream.<init>(GZIPInputStream.java:68) > > > > as it is shown, the data stream uses a GZIPInputStream decorator... but > removing that and leaving only the OutputStream, the server returns... > > java.io.StreamCorruptedException: invalid stream header: EFBFBDEF > > java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783) > > java.io.ObjectInputStream.<init>(ObjectInputStream.java:280) > > > > > So I'm guessing this has to be with the way JMeter proxy saves the info it > captures, because it seems to not to be the same that is send by the > original client. > > Any ideas??? >
This is similar to Bugzilla 44808 https://issues.apache.org/bugzilla/show_bug.cgi?id=44808 The JMeter Proxy is designed for capturing browser requests, not arbitrary HTTP requests. If you can capture the data in a file using some other means, then it may be possible to use JMeter to POST the file. It does not look to be at all easy to fix bug 44808. > > -- > David Castañeda R. > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

