{"id":6231,"date":"2014-04-13T23:31:56","date_gmt":"2014-04-13T23:31:56","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/problem-about-http-head-collection-of-common-programming-errors\/"},"modified":"2014-04-13T23:31:56","modified_gmt":"2014-04-13T23:31:56","slug":"problem-about-http-head-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/04\/13\/problem-about-http-head-collection-of-common-programming-errors\/","title":{"rendered":"problem about http-head-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/064e0c12ad87a42d8e94df57ffbe8f27?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ncosjav<br \/>\njava http httpclient apache-httpclient-4.x http-head<br \/>\nUsing 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<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6231","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6231","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6231"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6231\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6231"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6231"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6231"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}