Pregunta de entrevista de Thoughtworks

How does HTTP and HTTPS protocols work internally?