http协议版本为"HTTP/1.1"吗?包括https? [英] Does http protocol version "HTTP/1.1" include https?

查看:608
本文介绍了http协议版本为"HTTP/1.1"吗?包括https?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我实际上没有看到这个问题,也许是因为它是如此基本.

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

我正在使用Java Apache httpcomponent,并检查以下内容的返回:

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

HttpResponse response.getStatusLine() 返回:

HTTP/1.1 200确定

HTTP/1.1 200 OK

我将Apache HttpPost = new HttpPost(" https://login.blah.com/etc);

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

这是否表示我已成功通过此连接使用Https(即我的连接已成功使用HTTPS而不是常规HTTP)?

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

谢谢

推荐答案

是.

HTTP和HTTPS来自在应用程序级别独立发送的内容.

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

HTTPS基本上是通过TLS隧道的HTTP.

HTTPS is basically HTTP through a TLS tunnel.

因此,建立连接后,它就是HTTPS.

So when the connection is established it is HTTPS.

这篇关于http协议版本为"HTTP/1.1"吗?包括https?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆