View | Details | Raw Unified | Return to bug 60358
Collapse All | Expand All

(-)src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPHC4Impl.java (-1 / +16 lines)
Lines 65-71 Link Here
65
import org.apache.http.client.config.RequestConfig;
65
import org.apache.http.client.config.RequestConfig;
66
import org.apache.http.client.entity.UrlEncodedFormEntity;
66
import org.apache.http.client.entity.UrlEncodedFormEntity;
67
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
67
import org.apache.http.client.methods.HttpEntityEnclosingRequestBase;
68
import org.apache.http.client.methods.HttpGet;
69
import org.apache.http.client.methods.HttpHead;
68
import org.apache.http.client.methods.HttpHead;
70
import org.apache.http.client.methods.HttpOptions;
69
import org.apache.http.client.methods.HttpOptions;
71
import org.apache.http.client.methods.HttpPatch;
70
import org.apache.http.client.methods.HttpPatch;
Lines 308-313 Link Here
308
    protected HTTPHC4Impl(HTTPSamplerBase testElement) {
307
    protected HTTPHC4Impl(HTTPSamplerBase testElement) {
309
        super(testElement);
308
        super(testElement);
310
    }
309
    }
310
    
311
    /**
312
     * Implementation that allows GET method to have a body
313
     */
314
    public static final class HttpGet extends HttpEntityEnclosingRequestBase {
315
316
        public HttpGet(final URI uri) {
317
            super();
318
            setURI(uri);
319
        }
320
321
        @Override
322
        public String getMethod() {
323
            return HTTPConstants.GET;
324
        }
325
    }
311
326
312
    public static final class HttpDelete extends HttpEntityEnclosingRequestBase {
327
    public static final class HttpDelete extends HttpEntityEnclosingRequestBase {
313
328
(-)src/protocol/http/org/apache/jmeter/protocol/http/sampler/HTTPSampleResult.java (-2 / +1 lines)
Lines 36-47 Link Here
36
 */
36
 */
37
public class HTTPSampleResult extends SampleResult {
37
public class HTTPSampleResult extends SampleResult {
38
38
39
    private static final long serialVersionUID = 240L;
39
    private static final long serialVersionUID = 241L;
40
40
41
    /** Set of all HTTP methods, that have no body */
41
    /** Set of all HTTP methods, that have no body */
42
    private static final Set<String> METHODS_WITHOUT_BODY = new HashSet<>(
42
    private static final Set<String> METHODS_WITHOUT_BODY = new HashSet<>(
43
            Arrays.asList(
43
            Arrays.asList(
44
                    HTTPConstants.GET,
45
                    HTTPConstants.HEAD,
44
                    HTTPConstants.HEAD,
46
                    HTTPConstants.OPTIONS,
45
                    HTTPConstants.OPTIONS,
47
                    HTTPConstants.TRACE));
46
                    HTTPConstants.TRACE));

Return to bug 60358