Why FreeBSD fetch does not download a file via a proxy for
HTTPS URLS (the same works fine for HTTP urls)
RW
rwmaillists at googlemail.com
Thu Feb 24 11:17:58 UTC 2011
On Thu, 24 Feb 2011 12:49:06 +0530
chandra reddy <creddym at 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.
More information about the freebsd-hackers
mailing list