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 |
|