@@ -, +, @@ --- .../http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java | 7 +------ .../http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java | 7 +------ 2 files changed, 2 insertions(+), 12 deletions(-) --- a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java +++ a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC3Impl.java @@ -1032,12 +1032,7 @@ public class HTTPHC3Impl extends HTTPHCAbstractImpl { // If the request entity is repeatable, we can send it first to // our own stream, so we can return it if(put.getRequestEntity().isRepeatable()) { - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - put.getRequestEntity().writeRequest(bos); - bos.flush(); - // We get the posted bytes using the charset that was used to create them - putBody.append(new String(bos.toByteArray(),put.getRequestCharSet())); - bos.close(); + putBody.append(""); } else { putBody.append(""); --- a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java +++ a/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java @@ -1336,12 +1336,7 @@ public class HTTPHC4Impl extends HTTPHCAbstractImpl { // our own stream, so we can return it final HttpEntity entityEntry = entity.getEntity(); if(entityEntry.isRepeatable()) { - ByteArrayOutputStream bos = new ByteArrayOutputStream(); - entityEntry.writeTo(bos); - bos.flush(); - // We get the posted bytes using the charset that was used to create them - entityBody.append(new String(bos.toByteArray(), charset)); - bos.close(); + entityBody.append(""); } else { // this probably cannot happen entityBody.append(""); --