<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">at bottom:</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Oct 13, 2015 at 10:11 AM, shirish <span dir="ltr"><<a href="mailto:shirish@hamaralinux.org" target="_blank">shirish@hamaralinux.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">additional at bottom :-<div><div class="h5"><br>
<br>
On Tuesday 13 October 2015 10:05 AM, shirish wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Dear Akshat,<br>
<br>
It seems that the URL re-directs to some mirror internally.<br>
<br>
Do<br>
<br>
$ curl -# -O -L -v<br>
<a href="http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso" rel="noreferrer" target="_blank">http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso</a><br>
<br>
And you will see it starts to download as well as you see what is<br>
happening at the back-end a bit.<br>
<br>
There is also --trace-ascii which you can also use for debugging<br>
purposes if needed.<br>
<br>
-L is the crucial bit here as per man page<br>
<br>
-L, --location<br>
(HTTP/HTTPS) If the server reports that the requested<br>
page has moved to a different location (indicated with a Location:<br>
header and a 3XX response code), this option will make curl redo<br>
the request on the new place. If used together with -i, --include or -I,<br>
--head, headers from all requested pages will be shown. When<br>
authentication is used, curl only sends its credentials to the initial<br>
host. If a redirect takes curl to a different host, it won't be able to<br>
intercept the user+password. See also --location-trusted on how to<br>
change this. You can limit the amount of redirects to follow by using<br>
the --max-redirs option.<br>
<br>
When curl follows a redirect and the request is not a<br>
plain GET (for example POST or PUT), it will do the following request<br>
with a GET if the HTTP response was 301, 302, or 303. If the response<br>
code was any other 3xx code, curl will re-send the following request<br>
using the same unmodified method.<br>
<br>
You can tell curl to not change the non-GET request<br>
method to GET after a 30x response by using the dedicated options<br>
for that: --post301, --post302 and -post303.<br>
<br>
Let us know if you still get errors after trying the above flag/switch.<br>
<br>
</blockquote>
<br></div></div>
This is how it looks at my end :-<span class=""><br>
<br>
curl -# -O -L -v <a href="http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso" rel="noreferrer" target="_blank">http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso</a><br></span>
* Trying 81.187.100.26...<br>
* Connected to <a href="http://downloads.hamaralinux.org" rel="noreferrer" target="_blank">downloads.hamaralinux.org</a> (81.187.100.26) port 80 (#0)<br>
> GET /final/hamara_1.0.3_amd64.iso HTTP/1.1<br>
> Host: <a href="http://downloads.hamaralinux.org" rel="noreferrer" target="_blank">downloads.hamaralinux.org</a><br>
> User-Agent: curl/7.45.0<br>
> Accept: */*<br>
><br>
< HTTP/1.1 301 Moved Permanently<br>
< Date: Tue, 13 Oct 2015 04:28:56 GMT<br>
< Server: Apache<br>
< Location: <a href="https://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso" rel="noreferrer" target="_blank">https://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso</a><br>
< Content-Length: 270<br>
< Content-Type: text/html; charset=iso-8859-1<br>
<<br>
* Ignoring the response-body<br>
{ [270 bytes data]<br>
######################################################################## 100.0%* Connection #0 to host <a href="http://downloads.hamaralinux.org" rel="noreferrer" target="_blank">downloads.hamaralinux.org</a> left intact<br>
* Issue another request to this URL: '<a href="https://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso" rel="noreferrer" target="_blank">https://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso</a>'<br>
* Found bundle for host <a href="http://downloads.hamaralinux.org" rel="noreferrer" target="_blank">downloads.hamaralinux.org</a>: 0x560da04352d0<br>
* Trying 81.187.100.26...<br>
* Connected to <a href="http://downloads.hamaralinux.org" rel="noreferrer" target="_blank">downloads.hamaralinux.org</a> (81.187.100.26) port 443 (#1)<br>
* found 180 certificates in /etc/ssl/certs/ca-certificates.crt<br>
* found 724 certificates in /etc/ssl/certs<br>
* ALPN, offering http/1.1<br>
* SSL connection using TLS1.2 / ECDHE_RSA_AES_128_GCM_SHA256<br>
* server certificate verification OK<br>
* server certificate status verification SKIPPED<br>
* common name: *.<a href="http://hamaralinux.org" rel="noreferrer" target="_blank">hamaralinux.org</a> (matched)<br>
* server certificate expiration date OK<br>
* server certificate activation date OK<br>
* certificate public key: RSA<br>
* certificate version: #3<br>
* subject: OU=Domain Control Validated,CN=*.<a href="http://hamaralinux.org" rel="noreferrer" target="_blank">hamaralinux.org</a><br>
* start date: Tue, 01 Sep 2015 08:23:38 GMT<br>
* expire date: Thu, 29 Sep 2016 12:40:03 GMT<br>
* issuer: C=US,ST=Arizona,L=Scottsdale,O=GoDaddy.com\, Inc.,OU=<a href="http://certs.godaddy.com/repository/,CN=Go" rel="noreferrer" target="_blank">http://certs.godaddy.com/repository/,CN=Go</a> Daddy Secure Certificate Authority - G2<br>
* compression: NULL<br>
* ALPN, server did not agree to a protocol<br>
> GET /final/hamara_1.0.3_amd64.iso HTTP/1.1<br>
> Host: <a href="http://downloads.hamaralinux.org" rel="noreferrer" target="_blank">downloads.hamaralinux.org</a><br>
> User-Agent: curl/7.45.0<br>
> Accept: */*<br>
><br>
< HTTP/1.1 200 OK<br>
< Date: Tue, 13 Oct 2015 04:28:58 GMT<br>
< Server: Apache<br>
< Last-Modified: Wed, 30 Sep 2015 10:27:33 GMT<br>
< ETag: "42800000-520f460e949e8"<br>
< Accept-Ranges: bytes<br>
< Content-Length: 1115684864<br>
< Content-Type: application/x-iso9660-image<br>
<<br>
{ [8192 bytes data]<br>
#<br>
1.5%<br>
<br>
$ ll -h debian-stretch-DI-alpha3-amd64-DVD-1.iso<br>
-rw-r--r-- 1 shirish shirish 30M Oct 13 10:11 debian-stretch-DI-alpha3-amd64-DVD-1.iso<br>
<br>
<br>
See you all in the evening :)<div class=""><div class="h5"><br>
<br>
-- <br>
Regards,<br>
Shirish Agarwal,<br>
Community Lead,<br>
Hamaralinux.org<br>
</div></div></blockquote></div><br><br><div class="gmail_default" style="font-family:verdana,sans-serif">Hello Anant and Shirish,</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">I was trying using the following command:</div><div class="gmail_default" style="font-family:verdana,sans-serif">$ curl <a href="http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso">http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso</a> -o hamara_1.0.3_amd64.iso</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">and when I am using same command with ubuntu its downloading the ubuntu image but not the hamara iso. Its simply return me to prompt.</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">Hamara Image:</div><div class="gmail_default" style="font-family:verdana,sans-serif"><div class="gmail_default"><b>curl <a href="http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso">http://downloads.hamaralinux.org/final/hamara_1.0.3_amd64.iso</a> -o hamara_1.0.3_amd64.iso</b></div><div class="gmail_default"><b> % Total % Received % Xferd Average Speed Time Time Time Current</b></div><div class="gmail_default"><b> Dload Upload Total Spent Left Speed</b></div><div class="gmail_default"><b>100 270 100 270 0 0 512 0 --:--:-- --:--:-- --:--:-- 511</b></div><div class="gmail_default"><b><br></b></div><div class="gmail_default">But in case of Ubuntu image:</div><div class="gmail_default"><div class="gmail_default"><b>curl <a href="http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-amd64.iso">http://releases.ubuntu.com/14.04.3/ubuntu-14.04.3-desktop-amd64.iso</a> -o ubuntu-14.04.3-desktop-amd64.iso</b></div><div class="gmail_default"><b> % Total % Received % Xferd Average Speed Time Time Time Current</b></div><div class="gmail_default"><b> Dload Upload Total Spent Left Speed</b></div><div class="gmail_default"><b> 0 1006M 0 41354 0 0 19527 0 15:00:20 0:00:02 15:00:18 19534</b></div><div class="gmail_default"><b><br></b></div><div class="gmail_default"><br></div><div class="gmail_default"><br></div><div class="gmail_default">Shirish thanks for the curl command for ignoring certificate problem, In wget I used <span style="font-family:arial,sans-serif;font-size:12.8000001907349px">--no-check-certificate and wget was also working with this option before Anant has fixed something in webserver. Now, after fixing that problem in case of wget download is working without </span><span style="font-family:arial,sans-serif;font-size:12.8000001907349px">-no-check-certificate option but still curl is not able to download with default options.</span></div><div><br></div></div><div>Thanks</div></div><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font face="tahoma, sans-serif" color="#000099">Akshat Singh<br>[PG-8 IIITM-Kerala]<br></font><div><font face="tahoma, sans-serif" color="#000099">Pune</font></div><div><font color="#000099" face="tahoma, sans-serif"><br></font></div><div><font color="#000099" face="tahoma, sans-serif">Mob.: +91-8806963718</font></div><div><font color="#000099" face="tahoma, sans-serif"><a href="http://home-akshatsingh.rhcloud.com/aks/" target="_blank">Webpage: home-akshatsingh.rhcloud.com/aks/</a></font></div><div><font color="#000099" face="tahoma, sans-serif"><br></font></div></div></div></div></div></div></div>
</div></div>