Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Feb 2011 10:51:32 +0000
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Re: Why FreeBSD fetch does not download a file via a proxy for HTTPS URLS (the same works fine for HTTP urls)
Message-ID:  <20110224105132.69d074f7@gumby.homeunix.com>
In-Reply-To: <AANLkTikNiv4NkvK%2B2Ntb7FecdQk6i95Z3OFG9iu_SMJc@mail.gmail.com>
References:  <AANLkTikNiv4NkvK%2B2Ntb7FecdQk6i95Z3OFG9iu_SMJc@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 24 Feb 2011 12:49:06 +0530
chandra reddy <creddym@gmail.com> 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
> <http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.58>;
> des      1376:        if (purl) { 1.51
> <http://www.freebsd.org/cgi/cvsweb.cgi/src/lib/libfetch/http.c#rev1.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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110224105132.69d074f7>