How to send SSL traffic through an HTTP proxy using socat?

view story

http://serverfault.com – From the man page, socat allows me to open a TCP tunnel to the SSL target using the proxy option. Unfortunately, that is only half of the solution. Further research shows that socat2 addresses this usage case using address chains. However socat2 is still in beta and not yet readily available for a number of platforms. How can I send data (e.g. from stdin) to an SSL host through an HTTP proxy using socat1? (HowTos)