Web lists-archives.com

RE: Updated: setup (2.880)




The folks who couldn't reproduce it were using different 
command syntax than I.

Mine:   wget -O setup-x86_64.exe http://cygwin.com/setup-x86_64.exe
Theirs: wget https://cygwin.com/setup-x86_64.exe

Why did I use that syntax? Because it was given in the OP,
http://cygwin.com/ml/cygwin/2012-04/msg00714.html,
and it worked at the time, so I stuck with it.

So, experimenting with this, I was able to reproduce what I 
reported from the command line using my syntax, above, again 
creating the gzip formatted file. Then I tried the alternate 
syntax ("Theirs"), and I got the desired executable binary, 
as others have found. Then the surprising part: I then 
retried my syntax, and it created the correct executable 
image! I saw that this exercise created file ~/.wget-hsts, 
so I deleted it, reran my syntax, and again it created the 
gzip format. I also noticed that it was significantly 
quicker to download the .gzip format, even though the size 
difference is small.

To Jon who asks:
> Do you have something in your ~/.wgetrc to add an "accept-encoding: gzip" header or something? 
No, I don't even have this file.

Here, I show the commands and output that corroborate my assertions:
1. reproduce original results
2. reproduce others' results
3. show others' results influences my results
4. remove hidden file to restore my original results

$ time wget -O setup-x86_64.exe http://cygwin.com/setup-x86_64.exe
--2017-06-19 13:04:16--  http://cygwin.com/setup-x86_64.exe
Resolving cygwin.com... 209.132.180.131
Connecting to cygwin.com|209.132.180.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 877562 (857K) [application/octet-stream]
Saving to: ‘setup-x86_64.exe’

setup-x86_64.exe    100%[===================>] 856.99K  --.-KB/s    in 0.01s

2017-06-19 13:04:17 (78.5 MB/s) - ‘setup-x86_64.exe’ saved [877562/877562]


real    0m0.306s
user    0m0.000s
sys     0m0.046s
$ ls -l
total 860
-rw-r----- 1 knellis Domain Users 877562 Jun  7 12:58 setup-x86_64.exe
$ file setup-x86_64.exe
setup-x86_64.exe: gzip compressed data, from Unix
$ rm setup-x86_64.exe
$ time wget https://cygwin.com/setup-x86_64.exe
--2017-06-19 13:04:51--  https://cygwin.com/setup-x86_64.exe
Resolving cygwin.com... 209.132.180.131
Connecting to cygwin.com|209.132.180.131|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 906771 (886K) [application/octet-stream]
Saving to: ‘setup-x86_64.exe’

setup-x86_64.exe    100%[===================>] 885.52K  1.31MB/s    in 0.7s

2017-06-19 13:04:52 (1.31 MB/s) - ‘setup-x86_64.exe’ saved [906771/906771]


real    0m0.992s
user    0m0.031s
sys     0m0.061s
$ ls -l
total 888
-rw-r----- 1 knellis Domain Users 906771 Jun  7 12:58 setup-x86_64.exe
$ file setup-x86_64.exe
setup-x86_64.exe: PE32+ executable (GUI) x86-64, for MS Windows
$ rm setup-x86_64.exe
$ time wget -O setup-x86_64.exe http://cygwin.com/setup-x86_64.exe
URL transformed to HTTPS due to an HSTS policy
--2017-06-19 13:05:27--  https://cygwin.com/setup-x86_64.exe
Resolving cygwin.com... 209.132.180.131
Connecting to cygwin.com|209.132.180.131|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 906771 (886K) [application/octet-stream]
Saving to: ‘setup-x86_64.exe’

setup-x86_64.exe    100%[===================>] 885.52K  1.03MB/s    in 0.8s

2017-06-19 13:05:28 (1.03 MB/s) - ‘setup-x86_64.exe’ saved [906771/906771]


real    0m1.171s
user    0m0.015s
sys     0m0.031s
$ ls -l
total 888
-rw-r----- 1 knellis Domain Users 906771 Jun  7 12:58 setup-x86_64.exe
$ file setup-x86_64.exe
setup-x86_64.exe: PE32+ executable (GUI) x86-64, for MS Windows
$ rm setup-x86_64.exe
$ rm ~/.wget-hsts
$ time wget -O setup-x86_64.exe http://cygwin.com/setup-x86_64.exe
--2017-06-19 13:06:29--  http://cygwin.com/setup-x86_64.exe
Resolving cygwin.com... 209.132.180.131
Connecting to cygwin.com|209.132.180.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 877562 (857K) [application/octet-stream]
Saving to: ‘setup-x86_64.exe’

setup-x86_64.exe    100%[===================>] 856.99K  3.99MB/s    in 0.2s

2017-06-19 13:06:30 (3.99 MB/s) - ‘setup-x86_64.exe’ saved [877562/877562]


real    0m0.399s
user    0m0.000s
sys     0m0.046s
$ ls -l
total 860
-rw-r----- 1 knellis Domain Users 877562 Jun  7 12:58 setup-x86_64.exe
$ file setup-x86_64.exe
setup-x86_64.exe: gzip compressed data, from Unix
$

I shall change to the better syntax.

--Ken Nellis

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple