Re: ftp proxy host header

2015-01-12 Thread Alexander Bluhm
On Mon, Jan 12, 2015 at 01:04:14PM +, Stuart Henderson wrote: Good catch, definition for *proxyhost needs to go outside the #ifndef. Thanks, new diff: Index: usr.bin/ftp/fetch.c === RCS file:

Re: ftp proxy host header

2015-01-12 Thread Stuart Henderson
On 2015/01/12 13:51, Jérémie Courrèges-Anglas wrote: Stuart Henderson st...@openbsd.org writes: On 2015/01/12 12:35, Alexander Bluhm wrote: Hi, Fetching port distfiles with ftp from githup does not work when using a https proxy. The problem is that the http Host header is not not

Re: ftp proxy host header

2015-01-12 Thread Martin Pieuchot
On 12/01/15(Mon) 14:22, Alexander Bluhm wrote: On Mon, Jan 12, 2015 at 01:04:14PM +, Stuart Henderson wrote: Good catch, definition for *proxyhost needs to go outside the #ifndef. Thanks, new diff: Awesome, I can now run fw_update(1) behind our broken proxy. ok with me. Index:

Re: ftp proxy host header

2015-01-12 Thread David Coppa
On Mon, Jan 12, 2015 at 1:39 PM, Stuart Henderson st...@openbsd.org wrote: On 2015/01/12 12:35, Alexander Bluhm wrote: Hi, Fetching port distfiles with ftp from githup does not work when using a https proxy. The problem is that the http Host header is not not set and githup.com needs that.

Re: ftp proxy host header

2015-01-12 Thread Jérémie Courrèges-Anglas
Stuart Henderson st...@openbsd.org writes: On 2015/01/12 12:35, Alexander Bluhm wrote: Hi, Fetching port distfiles with ftp from githup does not work when using a https proxy. The problem is that the http Host header is not not set and githup.com needs that. So remember the host form

Re: ftp proxy host header

2015-01-12 Thread Stuart Henderson
On 2015/01/12 12:35, Alexander Bluhm wrote: Hi, Fetching port distfiles with ftp from githup does not work when using a https proxy. The problem is that the http Host header is not not set and githup.com needs that. So remember the host form the url and write it into the http request.