List of usage examples for org.apache.commons.httpclient Header Header
public Header(String paramString1, String paramString2, boolean paramBoolean)
From source file:org.apache.jmeter.protocol.http.control.TestCacheManager.java
public void testSetHeadersHttpMethodWithSampleResultWithResponseCode200GivesCacheEntry() throws Exception { this.httpMethod.setURI(this.uri); this.httpMethod.addRequestHeader(new Header(HTTPConstants.IF_MODIFIED_SINCE, this.currentTimeInGMT, false)); this.httpMethod.addRequestHeader(new Header(HTTPConstants.ETAG, EXPECTED_ETAG, false)); saveDetailsWithHttpMethodAndSampleResultWithResponseCode("200"); setHeadersWithUrlAndHttpMethod();//from w w w .j a v a 2 s. com checkRequestHeader(HTTPConstants.IF_NONE_MATCH, EXPECTED_ETAG); checkRequestHeader(HTTPConstants.IF_MODIFIED_SINCE, this.currentTimeInGMT); }
From source file:org.apache.jmeter.protocol.http.control.TestCacheManagerHttpMethod.java
@Override protected void addRequestHeader(String requestHeader, String value) { this.httpMethod.addRequestHeader(new Header(requestHeader, value, false)); }