I. HTTP and HTTPS protocols
1.URL
The URL full name is: Uniform Resource Locator (Uniform Resource Locator), through 1 URLs, can find the only 1 resources on the Internet.
The URL is the address of the resource, the location, and every resource on the Internet has a unique URL
Basic format of URL = protocol://Host address/path
eg:http://www.lanou3g.com/szzr/
Protocol: Different protocols, representing different ways of resource finding, resource transfer
Host Address: The host IP address (domain name) where the resource resides
Path: The location of the resource in the host
2.HTTP protocol
HTTP protocol, Hyper text Transfer Protocol (Hypertext Transfer Protocol) is a transport protocol used to transmit hypertext to a local browser from the World Wide Web (WWW) server, HTTP is an application-layer protocol consisting of requests and responses and is a standard client server model.
HTTP protocol: The request/response model is used. The client sends a request message to the server, and the server responds with a state.
c/S mode, b/S mode
3.HTTPS protocol
HTTPS: (Secure hypertext Transfer Protocol) Secure Hypertext Transfer Protocol, a secure communication channel that is based on HTTP development for exchanging information between client computers and servers. It uses Secure Sockets Layer (SSL) for information exchange, which simply means that it is a secure version of HTTP. The HTTPS protocol uses SSL to encrypt the original data in the sender, and then decrypt the receiver, the encryption and decryption need the sender and receiver by exchanging the common known key, so the transmitted data is not easy to be intercepted and decrypted by the network hacker.
SSL: Secure security protocol that runs on top of the TCP/IP layer and provides encrypted data channels for applications under the application layer
The similarities and differences between 4.HTTP and HTTPS
(1). HTTPS protocol requires a certificate to the CA, the general free certificate is very small and requires a fee
(2). HTTP is a Hypertext Transfer Protocol, the information is plaintext transmission, HTTPS is a secure SSL encrypted transport protocol
(3). HTTP and HTTPS use a completely different way of linking, the port is not the same, the former is a 80 port number, the latter is 443
(4). HTTP links are simple and stateless
(5). HTTPS protocol is a network protocol built by SSL + HTTP protocol that can be encrypted for transmission and authentication, which is more secure than HTTP.
5. Common Request Methods
Get mode: (synchronous omit, because asynchronous use of multi-----iOS9.0 later version)
Block method:
Proxy method:
Post mode: (synchronous omit, because asynchronous use of multi-----iOS9.0 later version)
Block method:
Ios-senior7-Data Requests