From owner-freebsd-questions@FreeBSD.ORG Wed Dec 28 13:37:23 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2993A16A41F for ; Wed, 28 Dec 2005 13:37:23 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail7.sea5.speakeasy.net (mail7.sea5.speakeasy.net [69.17.117.9]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6E25943D49 for ; Wed, 28 Dec 2005 13:37:22 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 10293 invoked from network); 28 Dec 2005 13:37:21 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail7.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Dec 2005 13:37:21 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id B9CE728423; Wed, 28 Dec 2005 08:37:20 -0500 (EST) Sender: lowell@be-well.ilk.org To: Kenneth W Cochran References: <200512251715.MAA16909536@shell.TheWorld.com> From: Lowell Gilbert Date: 28 Dec 2005 08:37:20 -0500 In-Reply-To: <200512251715.MAA16909536@shell.TheWorld.com> Message-ID: <44ek3xny0f.fsf@be-well.ilk.org> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: fetch(1) vs browser download fails comparison X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Dec 2005 13:37:23 -0000 Kenneth W Cochran writes: > How might a file retrieved/downloaded by fetch(1) differ from the > same file downloaded by a web browser (in this case mozilla & > firefox)? Specifically, if I download the free version of > ZoneAlarm for Windows (about 10mb) by each of these methods, I > get the file(s) and they're both the same length, but they fail > comparison, both by cmp(1) and by differing md5 hashes. As a > counterexample, fetching OpenOffice (some 80mb or so) works fine > & hash-verifies correctly. This same behavior is with both > 4.10-stable and 5.4-release. Ideas? Well, one of the differing downloads is wrong and the other is right. Figuring out which is which would at least tell you which program is downloading things incorrectly. Also look at the download URLs; the download that works correctly either way is probably using a different protocol than the one that is incorrect, and it would be useful to know which one is having problems.