<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic how to download a file using curl or wget | https in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7141621#M495907</link>
    <description>&lt;P&gt;Hello Folks:&lt;/P&gt;&lt;P&gt;I am trying to download a file using curl from a website that's on the cloud, its a backup zip file. The zip file that it downloads is not a zip file but ascii file with html code.&lt;/P&gt;&lt;P&gt;I've tried various combinations/swtiches, but nothing helps. Here are a few things I tried:&lt;/P&gt;&lt;P&gt;$ c&lt;SPAN class="s1"&gt;url -u username:password -L -J -O "&lt;A href="https://FQDN/index.php?/admin/subscription/get_export/2/filename.zip" target="_blank"&gt;https://FQDN/index.php?/admin/subscription/get_export/2/filename.zip&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;$ curl -u username:password -L -J "&lt;A href="https://FQDN/index.php?/admin/subscription/get_export/2" target="_blank"&gt;https://FQDN/index.php?/admin/subscription/get_export/2&lt;/A&gt;" -o output.zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;If I hover over the actual zip file (that I want to download) in the browser I only see this:&amp;nbsp;&lt;A href="https://FQDN/index.php?/admin/subscription/get_export/2" target="_blank"&gt;https://FQDN/index.php?/admin/subscription/get_export/2&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;and the zip file is the only zip file on that page the URL in the navigation bar in the browser shows this: &lt;A href="https://FQDN/index.php?/admin/subscription#" target="_blank"&gt;https://FQDN/index.php?/admin/subscription#&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;Any thoughts?&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 07:39:32 GMT</pubDate>
    <dc:creator>Shabu Khan-2</dc:creator>
    <dc:date>2021-07-06T07:39:32Z</dc:date>
    <item>
      <title>how to download a file using curl or wget | https</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7141621#M495907</link>
      <description>&lt;P&gt;Hello Folks:&lt;/P&gt;&lt;P&gt;I am trying to download a file using curl from a website that's on the cloud, its a backup zip file. The zip file that it downloads is not a zip file but ascii file with html code.&lt;/P&gt;&lt;P&gt;I've tried various combinations/swtiches, but nothing helps. Here are a few things I tried:&lt;/P&gt;&lt;P&gt;$ c&lt;SPAN class="s1"&gt;url -u username:password -L -J -O "&lt;A href="https://FQDN/index.php?/admin/subscription/get_export/2/filename.zip" target="_blank"&gt;https://FQDN/index.php?/admin/subscription/get_export/2/filename.zip&lt;/A&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;$ curl -u username:password -L -J "&lt;A href="https://FQDN/index.php?/admin/subscription/get_export/2" target="_blank"&gt;https://FQDN/index.php?/admin/subscription/get_export/2&lt;/A&gt;" -o output.zip&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;If I hover over the actual zip file (that I want to download) in the browser I only see this:&amp;nbsp;&lt;A href="https://FQDN/index.php?/admin/subscription/get_export/2" target="_blank"&gt;https://FQDN/index.php?/admin/subscription/get_export/2&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s1"&gt;and the zip file is the only zip file on that page the URL in the navigation bar in the browser shows this: &lt;A href="https://FQDN/index.php?/admin/subscription#" target="_blank"&gt;https://FQDN/index.php?/admin/subscription#&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class="p1"&gt;Any thoughts?&lt;/P&gt;&lt;P class="p1"&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:39:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7141621#M495907</guid>
      <dc:creator>Shabu Khan-2</dc:creator>
      <dc:date>2021-07-06T07:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: how to download a file using curl or wget | https</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7141697#M495908</link>
      <description>&lt;P&gt;&amp;gt; Any thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Without an actual URL or the actual "html code", all you get is&lt;BR /&gt;guesswork.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I'd guess that the web page uses active content (JavaScript), perhaps&lt;BR /&gt;to prevent people from doing exactly what you want to do.&amp;nbsp; And curl or&lt;BR /&gt;wget can't interpret it.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 21:02:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7141697#M495908</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2021-07-06T21:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to download a file using curl or wget | https</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7143015#M495909</link>
      <description>&lt;P style="margin: 0;"&gt;Hello,&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Follow as below.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;On a high-level, both wget and curl are command line utilities that do the same thing.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;They both can be used to download files using FTP and HTTP(s).&lt;BR /&gt;You can also send HTTP POST request using curl and wget&lt;BR /&gt;However curl provides APIs that can be used by programmers inside their own code. curl uses libcurl which is a cross-platform library.&lt;BR /&gt;wget is just a command-line tool without any APIs.&lt;BR /&gt;Curl also supports lot more protocols that wget doesn’t support. For example: SCP, SFTP, TFTP, TELNET, LDAP(S), FILE, POP3, IMAP, SMTP, RTMP and RTSP.&lt;BR /&gt;There is a major advantage of using wget. wget supports recursive download, while curl doesn’t.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Wget Examples&lt;BR /&gt;The following example downloads the file and stores in the same name as the remote server.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;wget &lt;A href="http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2" target="_blank"&gt;http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;The following example download the file and stores in a different name than the remote server. This is helpful when the remote URL doesn’t contain the file name in the url as shown in the example below.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;wget -O taglist.zip &lt;A href="http://www.vim.org/scripts/download_script.php?src_id=7701" target="_blank"&gt;http://www.vim.org/scripts/download_script.php?src_id=7701&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Curl Examples&lt;BR /&gt;$ curl -O &lt;A href="http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2" target="_blank"&gt;http://www.openss7.org/repos/tarballs/strx25-0.9.2.1.tar.bz2&lt;/A&gt;&lt;BR /&gt;&amp;nbsp; % Total &amp;nbsp; &amp;nbsp;% Received % Xferd &amp;nbsp;Average Speed &amp;nbsp; Time &amp;nbsp; &amp;nbsp;Time &amp;nbsp; &amp;nbsp; Time &amp;nbsp;Current&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Dload &amp;nbsp;Upload &amp;nbsp; Total &amp;nbsp; Spent &amp;nbsp; &amp;nbsp;Left &amp;nbsp;Speed&lt;BR /&gt;&amp;nbsp;28 3762k &amp;nbsp; 28 1085k &amp;nbsp; &amp;nbsp;0 &amp;nbsp; &amp;nbsp; 0 &amp;nbsp;72771 &amp;nbsp; &amp;nbsp; &amp;nbsp;0 &amp;nbsp;0:00:52 &amp;nbsp;0:00:15 &amp;nbsp;0:00:37 54267&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;BR /&gt;OR&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Follow the below link.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;A href="https://rakeshjain-devops.medium.com/download-files-and-directories-from-web-using-curl-and-wget-9217bc2e34c9" target="_blank"&gt;https://rakeshjain-devops.medium.com/download-files-and-directories-from-web-using-curl-and-wget-9217bc2e34c9&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;BR /&gt;If you feel this was helpful please click the KUDOS! thumb below and accept the solution.&lt;BR /&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jul 2021 05:34:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-to-download-a-file-using-curl-or-wget-https/m-p/7143015#M495909</guid>
      <dc:creator>SanjeevGoyal</dc:creator>
      <dc:date>2021-07-20T05:34:32Z</dc:date>
    </item>
  </channel>
</rss>

