X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; q=dns; s=default; b=KBm67yT7cUwxBSJD+D5BY9uu8coYp In75TEG2Q84js9Qe4Nb8unHIBT28f/E/cVAFX52A4/sTbGhUTKeIHw0B3tVQgf38 yuK9THv3DfBAmsnnl+x/F9K2fe5uKCCP5e47ofiAfUYUry1Oc04PLQZEDz4lef6I THbA6F+PjJqnrM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-transfer-encoding :mime-version; s=default; bh=2WvAcWbO2CWYrQL1OHqekqK9aeU=; b=ywN rVpmhmVgoaTQ14h0fuLQbYRaKRqMYRdp9XPLYSiFHEyMspuAZE+BL0BHfNWXrxpF wyQ8W4ToWKXVKKsUnsJ9WmsAE5GHaIQDVVjc8FkQVyXb8xF8tDILUYjcSYl1xjUN NxVYRihlObJPwGS4RXJlJ+Oc9Cvo9X2glD9ZFgKQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_50,EXECUTABLE_URI,GIT_PATCH_2,KAM_ASCII_DIVIDERS,KAM_EXEURI,MIME_BASE64_BLANKS,SPF_PASS autolearn=ham version=3.3.2 spammy=Saving, nellis, 2.880, Nellis X-HELO: USA7109MR002.ACS-INC.COM From: "Nellis, Kenneth" To: Jon Turney , The Cygwin Mailing List Subject: RE: Updated: setup (2.880) Date: Mon, 19 Jun 2017 17:29:05 +0000 Message-ID: References: <088b3d84-aad8-4984-1892-b66b9714f343 AT dronecode DOT org DOT uk> <64836b8b-3a53-4cf6-cea4-b8406d10c9b9 AT dronecode DOT org DOT uk> In-Reply-To: <64836b8b-3a53-4cf6-cea4-b8406d10c9b9@dronecode.org.uk> authentication-results: dronecode.org.uk; dkim=none (message not signed) header.d=none;dronecode.org.uk; dmarc=none action=none header.from=conduent.com; x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1;BN6PR2001MB1076;20:tR8tzM0HXDb2W9w9d7TtHqm5bd9pHZ2ZnKC1MvIZUKIi901UfBSZbJUGWjV8iAHmDk1T3wOTzLYiZpgAr+ci/CQfsc9x48OSGw4QlVSQAipYfflnwHumEFDY9GpnJ7l+zEoiQoK1jB3vXtXfjplg2W7W6726vpXS43dw6mPQlbPeoM2NySEeDmjgP6aRM3op03LXb6ZhpMb/GFSJBe2T5v/zb4wuIaC9fPF1xe9RXlECNOEjVjleRJjjkeVuFWfc x-ms-office365-filtering-correlation-id: 7fe1cf2b-e412-4a35-f9f5-08d4b738afa2 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254075)(201703131423075)(201703031133081);SRVR:BN6PR2001MB1076; x-ms-traffictypediagnostic: BN6PR2001MB1076: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(3002001)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123558100)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BN6PR2001MB1076;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BN6PR2001MB1076; x-forefront-prvs: 0343AC1D30 x-forefront-antispam-report: SFV:NSPM;SFS:(10009020)(6009001)(39400400002)(39410400002)(39840400002)(39450400003)(39850400002)(377424004)(10710500007)(15650500001)(55016002)(3280700002)(14454004)(189998001)(6506006)(6436002)(5660300001)(86362001)(7696004)(3660700001)(2906002)(38730400002)(53376002)(2900100001)(50986999)(76176999)(54356999)(229853002)(53936002)(77096006)(478600001)(966005)(72206003)(6306002)(9686003)(99286003)(6246003)(7110500001)(2420400007)(2950100002)(8936002)(81166006)(66066001)(25786009)(8676002)(3846002)(6116002)(102836003)(33656002)(122556002)(7736002)(74316002)(305945005)(460985005);DIR:OUT;SFP:1101;SCL:1;SRVR:BN6PR2001MB1076;H:BN6PR2001MB1074.namprd20.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en; spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Jun 2017 17:29:05.7666 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 1aed4588-b8ce-43a8-a775-989538fd30d8 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR2001MB1076 X-OriginatorOrg: conduent.com Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v5JHTjo2006729 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