From owner-freebsd-hackers@FreeBSD.ORG Thu Feb 24 11:17:58 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1683106566B for ; Thu, 24 Feb 2011 11:17:58 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 61B908FC1B for ; Thu, 24 Feb 2011 11:17:57 +0000 (UTC) Received: by wwb31 with SMTP id 31so525279wwb.31 for ; Thu, 24 Feb 2011 03:17:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:date:from:to:subject:message-id:in-reply-to :references:x-mailer:mime-version:content-type :content-transfer-encoding; bh=ZX1Zt7CeTVVOIaaWvE2uI+aNTVWPc4M1vRUE5KJfUqM=; b=uAM42bRA6lQPu1M2r/aYXKFF0nQNrHqbflwZGjxloFhh5u99lqBLy3NpsDiT9SIGwd TPQ5sETe+NERrWfHPzbmskZ/hGtWHAPNnO9oBCr3cydHeaCha2N+LA0rpr7UxIFhNGQ2 9HJXU6BsxYcOQxS6pxCF2FYSjvba2He4GN6ig= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=DflNDjJQUcf/Bq0SuVmKJ8e7mVJPqPcYVe/EESfcpbzKbJr3jrgh2jcmMQAqqWE6cY PmEscSPbv9WIc/RhZyQYqA7JTk3zoq0rs10cCsajJlgTfaifG0q5+uP4T1bQvSMJaPx7 OVWK42GUlkzOdr9LdD0TF4llGTwqfl3suMojw= Received: by 10.227.153.202 with SMTP id l10mr575936wbw.173.1298544696317; Thu, 24 Feb 2011 02:51:36 -0800 (PST) Received: from gumby.homeunix.com (87-194-105-247.bethere.co.uk [87.194.105.247]) by mx.google.com with ESMTPS id i80sm3675609wej.4.2011.02.24.02.51.34 (version=SSLv3 cipher=OTHER); Thu, 24 Feb 2011 02:51:35 -0800 (PST) Date: Thu, 24 Feb 2011 10:51:32 +0000 From: RW To: freebsd-hackers@freebsd.org Message-ID: <20110224105132.69d074f7@gumby.homeunix.com> In-Reply-To: References: X-Mailer: Claws Mail 3.7.8 (GTK+ 2.22.1; i386-portbld-freebsd8.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Why FreeBSD fetch does not download a file via a proxy for HTTPS URLS (the same works fine for HTTP urls) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Feb 2011 11:17:58 -0000 On Thu, 24 Feb 2011 12:49:06 +0530 chandra reddy wrote: > Hi All, > > I am working on a project where i need to download a file via a proxy > server using HTTPS protocol. I found that fetch does not work/support > HTTPS requests over a proxy. I just checked and neither do wget nor curl. > I could overcome the above problem if I do the following change. > > 1375: > 1.58 > > des 1376: if (purl) { 1.51 > > des 1377: URL = purl; > I don't think that would work, presumably it would just cause an attempt at an ssl connection to the proxy, followed by a GET request for an https URL. https through a proxy is supposed to use a CONNECT to tunnel through to the actual server.