Summary: | Patch proposal: Add DAV verbs to HTTP Sampler | ||
---|---|---|---|
Product: | JMeter - Now in Github | Reporter: | Philippe Jung <apache> |
Component: | HTTP | Assignee: | JMeter issues mailing list <issues> |
Status: | RESOLVED DUPLICATE | ||
Severity: | enhancement | CC: | p.mouawad |
Priority: | P2 | ||
Version: | 2.11 | ||
Target Milestone: | --- | ||
Hardware: | All | ||
OS: | All | ||
Attachments: |
dav_patch.diff. Implements HTTP DAV verbs
dav_patch_v2.diff - Implements HTTP DAV verbs - new version |
Patch is based on svn trunk Thanks! Patch looks generally good, though I wonder if the Webdav method checking could be done in a shared utility method. I don't think there is any need to implement the code for the HC3 or Java implementations. However some extra documentation is needed for component_reference.xml Created attachment 32123 [details]
dav_patch_v2.diff - Implements HTTP DAV verbs - new version
- Class HttpWebdav.java extracted from HTTPHC4Impl.java to org.apache.jmeter.protocol.http.sampler
- added isWebdavMethod in HttpWebdav class
- updated other files to use isWebdavMethod
- updated xdocs/usermanual/component_reference.xml
Date: Sat Oct 18 13:09:16 2014 New Revision: 1632785 URL: http://svn.apache.org/r1632785 Log: Bug 57107 - Patch proposal: Add DAV verbs to HTTP Sampler Bugzilla Id: 57107 Added: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HttpWebdav.java (with props) Modified: jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSamplerBase.java jmeter/trunk/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPConstantsInterface.java jmeter/trunk/xdocs/changes.xml jmeter/trunk/xdocs/usermanual/component_reference.xml Thanks a lot for your great contribution ! A tutorial or blog entry would be welcome :-) SEARCH method is missing *** This bug has been marked as a duplicate of bug 59005 *** This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/3458 |
Created attachment 32121 [details] dav_patch.diff. Implements HTTP DAV verbs The following patch adds the following verbs in HTTP Proxy Recorder / HTTP Sampler: PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK I have been able to test PROPFIND, PROPPATCH, MKCOL, COPY, MOVE mixed with DELETE, PUT & HEAD (Recording and replaying ownCloud client trafic to ownCloud server) For the moment implementation is only in HTTPHC4Impl.java, neither in HTTPHC3Impl.java nor in HTTPJavaImpl.java I would like to know if you are interested by this patch? In this case, I will update it with modified HTTPHC3Impl.java. Not sure HTTPJavaImpl.java is required as I have seen unimplemented methods in HTTPJavaImpl.java (PATCH as far as I can remember).