I may be lacking in HTTP and HTTPS knowledge so apologies in advance.
I see that in the response to a curl request, using curl -i
, we can see the HTTP version and response code, for e.g. HTTP/2 200
. This is returned when the curl request is directed at a HTTPS endpoint (https://xxx
).
Would it be possible to see a HTTPS
in the response? If not, why not?
CodePudding user response:
No, whether the communication is secure or not has nothing to do with which version of the protocol you are using, in the response you will see the version (commonly HTTP/1.1 or HTTP/2 these days)
Using https means that the connection is established over TLS, while the communication protocol is still HTTP.
In simple terms, TLS is a communication channel, while HTTP is a dialect