Add proxy BEFORE opening socket 

setting a request header creates the actual request object (calls Request.request()) which - for https urls - creates a new http.ClientRequest with options.createConnection to be called in ClientRequest constructor and which initiates connect on the socket. So -> proxy should be called first