You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2015/11/13 20:49:58 UTC
[Bug 58609] New: JMeter support for gzip for requests when
content-encoding is set to gzip
https://bz.apache.org/bugzilla/show_bug.cgi?id=58609
Bug ID: 58609
Summary: JMeter support for gzip for requests when
content-encoding is set to gzip
Product: JMeter
Version: 2.13
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: HTTP
Assignee: issues@jmeter.apache.org
Reporter: jayakhanna.p@gmail.com
While setting the content-encoding to gzip in the http header manager and
trying to send the POST request, the http body content isn't compressed and
eventually throws an error.
Would be good to add support for gzip, deflate for the request too. Looked at
the code and we do use GzipInputStream for the responses.
http://svn.apache.org/repos/asf/jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java
<snip>
if (instream != null) {// will be null for HEAD
instream = new CountingInputStream(instream);
try {
Header responseHeader =
httpMethod.getResponseHeader(HTTPConstants.HEADER_CONTENT_ENCODING);
if (responseHeader!= null &&
HTTPConstants.ENCODING_GZIP.equals(responseHeader.getValue())) {
InputStream tmpInput = new GZIPInputStream(instream);
// tmp inputstream needs to have a good counting
res.setResponseData(readResponse(res, tmpInput, (int)
httpMethod.getResponseContentLength()));
} else {
res.setResponseData(readResponse(res, instream, (int)
httpMethod.getResponseContentLength()));
}
} finally {
JOrphanUtils.closeQuietly(instream);
}
}
<snip>
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58609] JMeter support for gzip for requests when
content-encoding is set to gzip
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58609
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |p.mouawad@ubik-ingenierie.c
| |om
OS| |All
Hardware|PC |All
Severity|normal |enhancement
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 58609] JMeter support for gzip for requests when
content-encoding is set to gzip
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=58609
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P2 |P1
--
You are receiving this mail because:
You are the assignee for the bug.