well, I guess it depends it depends if you are allowed to link libraries, if not then good luck implementing TLS etc. from scratch :) The modern web really isn't that simple anymore...
Reminds me of this cool website where you can see all the complexity involved