Created attachment 35841 [details] Sampler Parameters Tab screenshot Hello, In order to test RESTFUL applications JMeter has currently some limits: - As per Bug 60015, multipart/form-data only works for POST, it should work for other methods - As per discussion on dev mailing list (MultiPart/form-data : Supporting JSON body + file upload : http://mail-archives.apache.org/mod_mbox/jmeter-dev/201703.mbox/%3CCAH9fUpb9pAJYUchwUbvtA5VC_Cr5B4pSaR62pXYg9sF2Z1-kMg%40mail.gmail.com%3E), one cannot specify some content-type on parts of a multipart. Providing this would make JMeter even more powerful than Postman on this level As a minor side effect, it will drop the feature related to Bug 60092 (maybe it can be added later)
Created attachment 35842 [details] Sampler File Upload Tab screenshot
Created attachment 35843 [details] Request sent
Author: pmouawad Date: Thu Apr 5 19:10:44 2018 New Revision: 1828467 URL: http://svn.apache.org/viewvc?rev=1828467&view=rev Log: Bug 62260 - Improve Rest support This also fixes: - Bug 60190 - Content-Type is added for POST unconditionally Bug 60015 - Multipart/form-data works only for POST using HTTPClient4 while it should for PUT, DELETE... Contributed by UbikLoadPack Bugzilla Id: 62260 Modified: jmeter/trunk/bin/jmeter.properties jmeter/trunk/src/core/org/apache/jmeter/resources/messages.properties jmeter/trunk/src/core/org/apache/jmeter/resources/messages_fr.properties jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/MultipartUrlConfig.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/config/gui/UrlConfigGui.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/gui/HTTPArgumentsPanel.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/proxy/DefaultSamplerCreator.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPAbstractImpl.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/PostWriter.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/PostWriterTest.java jmeter/trunk/test/src/org/apache/jmeter/protocol/http/sampler/TestHTTPSamplersAgainstHttpMirrorServer.java jmeter/trunk/xdocs/changes.xml jmeter/trunk/xdocs/usermanual/properties_reference.xml
*** Bug 60015 has been marked as a duplicate of this bug. ***
Author: pmouawad Date: Thu Apr 5 19:41:52 2018 New Revision: 1828470 URL: http://svn.apache.org/viewvc?rev=1828470&view=rev Log: Bug 62260 Revert changes unrelated to issue + issue in java. Add test case for No KeepAlive to ensure Connection: close is present Bugzilla Id: 62260 Modified: jmeter/trunk/bin/testfiles/TestKeepAlive.csv jmeter/trunk/bin/testfiles/TestKeepAlive.jmx jmeter/trunk/bin/testfiles/TestKeepAlive.xml jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPJavaImpl.java
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4740