{"id":15,"date":"2009-12-22T13:15:57","date_gmt":"2009-12-22T19:15:57","guid":{"rendered":"https:\/\/fixes.rebelcomputing.com\/?p=15"},"modified":"2022-05-04T15:23:25","modified_gmt":"2022-05-04T21:23:25","slug":"wget-read-error-connection-reset-by-peer","status":"publish","type":"post","link":"https:\/\/fixes.rebelcomputing.com\/?p=15","title":{"rendered":"wget Read error (Connection reset by peer)"},"content":{"rendered":"<p><strong>Problem:<br \/>\n<\/strong>HTTP request sent, awaiting response&#8230; Read error (Connection reset by peer) in headers. <a href='http:\/\/www.alyxsmith.design\/92337783\/'>\u0644\u0639\u0628\u0629 \u062f\u0648\u0645\u064a\u0646\u0648 \u062d\u0642\u064a\u0642\u064a\u0629<\/a><br \/>\nRetrying.<\/p>\n<p>The linux command, <strong>wget<\/strong>, returns this error over and over again even though you can download the file just fine using a web browser.<\/p>\n<p><strong>Solution:<br \/>\n<\/strong>It turns out some webservers don&#8217;t like <strong>wget<\/strong>. Luckily, you can get around their dislike of <strong>wget<\/strong> by adding a\u00a0switch to the command. Simply add <em>&#8211;user-agent=Mozilla<\/em> and you will be able to download the file.<\/p>\n<p>Example:<br \/>\nchange:<br \/>\n<strong>wget <a href=\"http:\/\/www.somewebsite.tld\/somefile.pdf\">http:\/\/www.somewebsite.tld\/somefile.pdf<\/a><\/strong><br \/>\nto:<br \/>\n<strong>wget &#8211;user-agent=Mozilla <a href=\"http:\/\/www.somewebsite.com\/somefile.pdf\">http:\/\/www.somewebsite.tld\/somefile.pdf<\/a><\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem: HTTP request sent, awaiting response&#8230; Read error (Connection reset by peer) in headers. \u0644\u0639\u0628\u0629 \u062f\u0648\u0645\u064a\u0646\u0648 \u062d\u0642\u064a\u0642\u064a\u0629 Retrying. The linux command, wget, returns this error over and over again even though you can download the file just fine using a web browser. Solution: It turns out some webservers don&#8217;t like wget. Luckily, you can get [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,5],"tags":[],"class_list":["post-15","post","type-post","status-publish","format-standard","hentry","category-fixes","category-linux"],"_links":{"self":[{"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":4,"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":68,"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/68"}],"wp:attachment":[{"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fixes.rebelcomputing.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}