Modifier and Type | Field and Description |
---|---|
static String |
AMPERSAND
The Constant ampersand
"&" . |
static String |
FRAGMENT
查询片段
"#" . |
static String |
QUESTIONMARK
"?" The question mark is used as a separator and is not part of the query string. |
static String |
SCHEME_HTTP
http协议
"http" . |
static String |
SCHEME_HTTPS
https协议
"https" . |
public static final String FRAGMENT
"#"
.public static final String QUESTIONMARK
"?"
The question mark is used as a separator and is not part of the query string.public static final String AMPERSAND
"&"
.public static final String SCHEME_HTTP
"http"
.
超文本传输协议(HTTP,HyperText Transfer Protocol)是互联网上应用最为广泛的一种网络协议。
public static final String SCHEME_HTTPS
"https"
.
全称:Hyper Text Transfer Protocol over Secure Socket Layer;
是以安全为目标的HTTP通道,简单讲是HTTP的安全版。
即HTTP下加入SSL层,HTTPS的安全基础是SSL,因此加密的详细内容就需要SSL。
- https协议需要到ca申请证书,一般免费证书很少,需要交费。
- http是超文本传输协议,信息是明文传输,https 则是具有安全性的ssl加密传输协议。
- http和https使用的是完全不同的连接方式,用的端口也不一样,前者是80,后者是443。
- http的连接很简单,是无状态的;HTTPS协议是由SSL+HTTP协议构建的可进行加密传输、身份认证的网络协议,比http协议安全。
Copyright © 2008-2019 by feilong