Implement using "CONNECT" for tunneling HTTPS through proxy

Does not work, yields a "Bad request" on the system I am trying it out
with at the moment... though looking at other implementations it seems
to be correct. Must be missing something, though not sure what exactly