HTTP proxy with SSL and DNS support.
------------------------------------

I must be lacking some key concepts about proxy-ing because I cannot grasp this. I am looking to run a simply http or https proxy without interfering with SSL. Simply, a fully transparent proxy that can passthrough all the traffic to the browser connected via HTTP or HTTPS proxy without modifying or intercepting any packets. Not able to find any code online or I'm not using the right keywords. 

EX. On the browser adding **server.someVPN.com:80 on the HTTP proxy field** and as soon as you try to visit a website, it prompts for authentication. Then it **works perfectly with any domain**, any security, any ssl, no further steps needed. Most VPN providers have this. 

How's this possible? it even resolves DNS itself. I thought on transparent proxy the dns relies on the client. Preferably looking for a nodeJS solution but any lang works.

Please don't propose any solutions such as SOCKS5 or sock forwarding or DNS overriding or CA based MITM. According to HTTP 1.1 which supports 'CONNECT' this should be easy.

Not looking to proxy specific domains, looking for an all inclusive solution **just like most VPN Providers** providers.

----Found the answer too quickly, feel free to delete this post/question admins.