problem about http-head-Collection of common programming errors


  • cosjav
    java http httpclient apache-httpclient-4.x http-head
    Using the test class below, the line at ///// 1 ///// throws a NoHttpResponseException (see exception trace with logging at the end of the question). Executing any of the other lines ///// 2-to-8 ///// prints out the headers fine. Is this a bug in HttpClient 4.3.x or am I doing something wrong (I have tested this with both 4.3.1 and 4.3.2)?import java.util.Arrays;import org.apache.http.client.methods.*; import org.apache.http.impl.client.*; import org.apache.http.params.*;public class PrintHeade

Web site is in building