<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Wget on Junian Dev</title>
    <link>https://www.junian.dev/tags/wget/</link>
    <description>Recent content in Wget on Junian Dev</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <managingEditor>author@junian.dev (Junian Triajianto)</managingEditor>
    <webMaster>author@junian.dev (Junian Triajianto)</webMaster>
    <copyright>Copyright &amp;copy; 2014 - 2026 Junian.dev</copyright>
    
	    <atom:link href="https://www.junian.dev/tags/wget/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Wget File Download with Correct File Name</title>
      <link>https://www.junian.dev/tech/wget-correct-name/</link>
      <pubDate>Sat, 28 Mar 2020 08:48:21 +0700</pubDate>
      <author>author@junian.dev (Junian Triajianto)</author>
      <guid>https://www.junian.dev/tech/wget-correct-name/</guid>
      <description>&lt;p&gt;I&amp;rsquo;m using &lt;code&gt;wget&lt;/code&gt; a lot when I need to download a file from the internet to my headless server.
But sometimes, the URL I got isn&amp;rsquo;t ended with a clean file name.
Sometimes the URL redirect to another one, sometimes it has parameters.
As you know, &lt;code&gt;wget&lt;/code&gt; doesn&amp;rsquo;t handle the file name correctly when you have a non-clean URL.&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;Not in the mood for reading? Watch the &lt;a href=&#34;https://www.junian.dev/tech/wget-correct-name/#video&#34;&gt;video&lt;/a&gt; instead.&lt;/em&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;For example, I want to download a vim script called &lt;a href=&#34;https://www.vim.org/scripts/script.php?script_id=1658&#34;&gt;The NERD tree&lt;/a&gt; from its official website.
From the web page, we can see that the latest version by the time this article written is v5.0.0.
As you can see, the file name is &lt;code&gt;NERD_tree.zip&lt;/code&gt; with following URL.&lt;/p&gt;</description>
    </item>
    
  </channel>
</rss>
