urllib.request.urlretrieve not downloading files over HTTPS
<p>The below URL is the download link to download a text file.
If I paste the URL in the Firefox it downloads the actual contents i.e text file. But, when used <code>urlretrieve</code> it is giving me some html source code file.</p>

<pre><code>&gt;&gt;&gt; import urllib
&gt;&gt;&gt; down_link='URL' #URL is a ***HTTPS*** link to download .txt file
&gt;&gt;&gt; file=urllib.request.urlretrieve(down_link)
</code></pre>

<p>this is the output I get:</p>

<pre><code>&gt;&gt;&gt;
('C:\\Users\\rakesh.j.kulkarni\\AppData\\Local\\Temp\\tmps7559wgi'
http.client.HTTPMessage object at 0x03A3C610&gt;)
</code></pre>

<p>when opened the file I get html source file which when opened with browser it the same webpage's login form,</p>

<p>So i have to come up with the alternate process to do the same for time being until the problem gets resolved</p>

<pre><code>subprocess.Popen(["C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", down_link])
</code></pre>

<p>I then go to downloads and work on the file.</p>