ASF Bugzilla – Attachment 34680 Details for
Bug 60649
HTTP(S) Test Script Recorder: wrong postdata
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Try to guess if body data is of name=value form
01-parse-post-in-proxy.diff (text/plain), 1.32 KB, created by
Felix Schumacher
on 2017-01-26 15:00:39 UTC
(
hide
)
Description:
Try to guess if body data is of name=value form
Filename:
MIME Type:
Creator:
Felix Schumacher
Created:
2017-01-26 15:00:39 UTC
Size:
1.32 KB
patch
obsolete
>diff --git a/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java b/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java >index c548e4c..425a712 100644 >--- a/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java >+++ b/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java >@@ -199,7 +199,11 @@ public class DefaultSamplerCreator extends AbstractSamplerCreator { > // It is the most common post request, with parameter name and values > // We also assume this if no content type is present, to be most backwards compatible, > // but maybe we should only parse arguments if the content type is as expected >- sampler.parseArguments(postData.trim(), contentEncoding); //standard name=value postData >+ if (postData.trim().indexOf('=') >= 0) { >+ sampler.parseArguments(postData.trim(), contentEncoding); //standard name=value postData >+ } else { >+ sampler.addNonEncodedArgument("", postData, ""); //used when postData has seems to be not of the format name=value >+ } > } else if (postData.length() > 0) { > if (isBinaryContent(contentType)) { > try {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 60649
: 34680