{"id":6110,"date":"2019-07-05T15:12:48","date_gmt":"2019-07-05T12:12:48","guid":{"rendered":"http:\/\/mummila.net\/kommentit\/?p=6110"},"modified":"2019-07-05T15:12:48","modified_gmt":"2019-07-05T12:12:48","slug":"no-data-received-ua-spoofing-required-for-download-to-work","status":"publish","type":"post","link":"https:\/\/mummila.net\/kommentit\/2019\/07\/05\/no-data-received-ua-spoofing-required-for-download-to-work\/","title":{"rendered":"&#8221;No data received&#8221;: UA spoofing required for download to work"},"content":{"rendered":"<p>I&#8217;m using yle-dl 20190614 with GNU Wget 1.19.4 in Ubuntu 18.04.<\/p>\n<p>When trying to download this (and so far this is the only example I&#8217;ve come across):\u00a0<a href=\"https:\/\/areena.yle.fi\/1-50192791\" rel=\"nofollow\">https:\/\/areena.yle.fi\/1-50192791<\/a><\/p>\n<p>Wget fails like this:<\/p>\n<pre><code>Resolving ylekaod-a.akamaihd.net (ylekaod-a.akamaihd.net)... 62.183.170.32, 62.183.170.35\r\nConnecting to ylekaod-a.akamaihd.net (ylekaod-a.akamaihd.net)|62.183.170.32|:443... connected.\r\nHTTP request sent, awaiting response... No data received.\r\nRetrying.<\/code><\/pre>\n<p>It tries a few more times, then gives up. I&#8217;m attaching\u00a0<a href=\"https:\/\/github.com\/aajanki\/yle-dl\/files\/3362616\/ronyledl-verbose.log\">a\u00a0<code>--verbose<\/code>\u00a0log (with\u00a0<code>LC_ALL=C<\/code>)<\/a>.<\/p>\n<h3>Workaround<\/h3>\n<p>I took the wget command from &#8211;verbose output and added UA spoofing with\u00a0<code>-U 'Mozilla\/5.0 (X11; Linux i686) AppleWebKit\/537.17 (KHTML, like Gecko) Chrome\/24.0.1312.27 Safari\/537.17'<\/code>, and with the resulting command I was able to download the file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I took the wget command from &#8211;verbose output and added UA spoofing with -U, and with the resulting command I was able to download the file.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8860],"tags":[14080],"class_list":["post-6110","post","type-post","status-publish","format-standard","hentry","category-vianhallintajarjestelmat","tag-wget","sijainti-github"],"_links":{"self":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6110","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/comments?post=6110"}],"version-history":[{"count":2,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6110\/revisions"}],"predecessor-version":[{"id":6112,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/posts\/6110\/revisions\/6112"}],"wp:attachment":[{"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/media?parent=6110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/categories?post=6110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mummila.net\/kommentit\/wp-json\/wp\/v2\/tags?post=6110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}