Fetching port distfiles with the ftp command from githup did not
authorbluhm <bluhm@openbsd.org>
Mon, 12 Jan 2015 15:46:55 +0000 (15:46 +0000)
committerbluhm <bluhm@openbsd.org>
Mon, 12 Jan 2015 15:46:55 +0000 (15:46 +0000)
commita58df61463ca0e13a7ac02fa0da75e510398329e
tree2f536496b2eaa94ecb31caf8d2670817eb651dc4
parent38940dfd04fe962674726534b4e88593400cfc1c
Fetching port distfiles with the ftp command from githup did not
work when using a https proxy because of a missing host header.
Remember the host form the url and write it into the http request.
Fix the format string when using Proxy-Authorization together with
Cookie.  Also write the http request to the debugging output to
see what is going on.
input jca@; OK sthen@ mpi@
usr.bin/ftp/fetch.c