Does http protocol version "HTTP/1.1" include https?

dev :

I actually don't see this question already asked, perhaps because it is so basic.

I'm working with Java Apache httpcomponent, and inspecting the return of:

HttpResponse response.getStatusLine() returns:

HTTP/1.1 200 OK

I made the Apache HttpPost = new HttpPost("https://login.blah.com/etc");

Does this mean that I successfully am using Https with this connection (ie, my connection has successfully used HTTPS and not regular HTTP) ?

Thanks

Martin B. :

Yes.

HTTP and HTTPS are from the content that is being sent on application level indiferrent.

HTTPS is basically HTTP through a TLS tunnel.

So when the connection is established it is HTTPS.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=475380&siteId=1