{"id":52,"date":"2006-03-13T11:42:33","date_gmt":"2006-03-13T06:12:33","guid":{"rendered":"http:\/\/ramfree17.org\/capsule\/?p=52"},"modified":"2006-03-13T11:42:33","modified_gmt":"2006-03-13T06:12:33","slug":"using-wget","status":"publish","type":"post","link":"https:\/\/ramfree17.net\/capsule\/?p=52","title":{"rendered":"Using wget"},"content":{"rendered":"<p>I use <span>wget<\/span> from time to time (via cygwin when I am in the office) but the most I have used on its parameter is the -c option. This post is a reminder of the options and tips that I could use and have used for the <span>wget<\/span> utility. Why not just consult the manpage? It is because it is easier to put it here for further reference.  There are a thousand <span>wget<\/span> tutorial sites out there, so why waste space here? The answer to that is because I can. \ud83d\ude1b<\/p>\n<p><code>Usage: <span>wget<\/span> [options] URL<\/code><\/p>\n<ul>\n<li>Instead of specifying the proxy using the environment variable <em>http_proxy<\/em>, consider putting it in <em>\/etc\/<span>wget<\/span>rc<\/em> instead. Not advisable if you dont have a consistent single source of connection (e.g. prepaid cards,etc)<\/li>\n<li><strong>-c<\/strong> &#8211; continue the file being downloaded. nifty if you are downloading a big file although it requires the download site to support resuming.<\/li>\n<li><strong>&#8211;user-agent=&#8221;UA_STRING&#8221;<\/strong> &#8211; based on a tip from the PLUG list. Spoofs the user agent to look like the download request is from a browser. This is good for sites that disallow dowloads from download managers. Example would be <code>-user-agent=\"Mozilla\/4.0 (compatible; MSIE 5.0b1; Windows NT 5.1*) \"<\/code><\/li>\n<li><strong>&#8211;limit-rate=[number]<\/strong> &#8211; limits the download rate so <span>wget<\/span> does not hog all the bandwidth. Appending a <em>k<\/em> at the end of the number signifies kilobytes per second.<\/li>\n<\/ul>\n<p>   More updates as I use more options. \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I use wget from time to time (via cygwin when I am in the office) but the most I have used on its parameter is the -c option. This post is a reminder of the options and tips that I could use and have used for the wget utility. Why not just consult the manpage? [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12,6],"tags":[],"class_list":["post-52","post","type-post","status-publish","format-standard","hentry","category-floss","category-technology"],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/posts\/52","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=52"}],"version-history":[{"count":0,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=\/wp\/v2\/posts\/52\/revisions"}],"wp:attachment":[{"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=52"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=52"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ramfree17.net\/capsule\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=52"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}