In-depth understanding of HTTP protocol and principles (1)
1. Basic Concepts
1.1 Introduction
HTTP is short for Hyper Text Transfer Protocol. Its development is the result of cooperation between the World Wide Web Consortium and the Internet team IETF (Internet Engineering Task Force). They finally published a series
1. HTTP Overview
HyperText Transfer Protocol (Hyper Text Transfer Protocol) is a Transfer Protocol used to Transfer HyperText from a WWW server to a local browser. It makes the browser more efficient and reduces network transmission. It not only ensures that the computer transfers hypertext documents correctly and quickly, but also determines which part of the transmitted documents and which part of the con
: This article mainly introduces the http get and post encapsulation of the Weibo development 1 client. For more information about PHP tutorials, see. This blog is about how the client encapsulates the Http protocol, and how the client uses the post and get methods, which is one of the core code.
The following is an excerpt from Huangshi Jun's android and PHP de
a JSP client request When a Web page is requested by the browser, it sends a series of information to the Web server that cannot be read directly, as this information is used as an HTTPPart of the rest of the head. We can check the HTTP protocol to get more information. The following table lists some of the important aspects of the browser-side information header, which you will see frequently in future network programming: (
Network request http get post 1, getpost
Http defines different ways to interact with the server. There are four basic methods: Get post put delete, full URL resource descriptor. We can think of a URL address, a URL address, it is used to describe resources on a network, while Get post put delete in HTTP corresponds
1A
and can be used by other requests.The client can also specify the priority of the data flow. The higher the priority, the sooner the server responds.• Header information CompressionThe HTTP protocol does not have a status, and each request must have all the information attached. Therefore, many of the requested fields are duplicates, such as Cookie and User Agent , exactly the same content, each request must be accompanied, which will waste a lot of
How to create an HTTP server (1)
HTTP Overview
Understand the Web Server:
Compile an HTTP (Hypertext Transfer Protocol) server, that is, the Web server. We can define it as follows: Based on the HTTP protocol, transfer the corresponding webpage file to the Customer Service
Description and configuration of Alamofire
1, what is Alamofire
(1) The predecessor of Alamofire is afnetworking. Afnetworking is a popular third party HTTP network base on IOS and OS x.
(2) In fact afnetwork prefix AF is the abbreviation of Alamofire.
(3) After Swift's release, Afnetworking's author wrote a library of the same functions in
First, what is the HTTP protocol:1. Concept:After the client connects to the Web server, if you want to obtain a Web resource in the Web server, you need to follow a certain communication format, the HTTP protocol is used to define the format of the client and Web server communication (to specify how the client and server interact).
IP address 192.168.1.100, do a binary and operation (two digits the same, the result is 1, otherwise 0), the result is 192.168.1.0; then Google's IP address 1 72.194.72.105 also does an and operation, and evaluates to 172.194.72.0. These two results are not equal, so the conclusion is that Google is not on the same subnet as the native computer.therefore, we want to send a packet to Google, must be forward
): Major/minorText/htmlText/plainImage/jpegImage/gifUri:uniform Resource Identifier, the Uniform Resource identifier.Url:uniform Resource Locator, a Uniform Resource locator that describes the location of a specific resource for a serverScheme://server:port/path/to/resoourceHttp://www.magedu.com/images/logo.jpgUrn:uniform Resource nameing, Uniform Resource name, currently less usedProtocol version of HTTPhttp/0.9: Prototype version, simple functionalityhttp/1.0: The first widely used version tha
First, the HTTP protocol principle is introduced:HTTP protocol, full name hypertext Transfer Protocol, Chinese name Hypertext Transfer ProtocolOne of the important applications of HTTP is the WWW servicewww, full name World Wide Web, often referred to as the Web, the Chinese translation of "www"The default port for the WWW Service Application of the HTTP protocol
. Request) Mux = Make (Map[string]func (HTTP. Responsewriter, *http. Request)) mux["/hello"] = hellomux["/bye"] = byeerr: = Server. Listenandserve () if err! = Nil {log. Fatal (ERR)}//so that we can do the mapping of the path func (*myhandle) servehttp (w http. Responsewriter, R *http. Request) {if h, OK: = Mux[r.url.
eventually translates into an HTTP response to the client. The message processing pipeline for ASP. NET core is very simple from the point of view of design, but it is relatively difficult to understand from the point of view of concrete implementation, in order to let readers have a deep understanding of this chapter, we start from the simple part.first, speaking from Hello worldTo enable readers to understand the message processing pipeline of ASP.
of this is the wheat college server is using Apache as a server, and is based on the Linux operating system (Ubuntu).Server apache/2.4.7 (Ubuntu)The code uses GZIP, which corresponds to our server.Content-encoding:gzipAnd what does Content–length represent? Represents the size of the data that is responding. 11114 bytes.content-length:11114.The time to set the timeout here is 5 seconds, and the maximum is no more than 100 seconds.keep–alive:timeout=5;max=100;The connection also keeps the long c
1. Four-layer model+2.socket3.http protocol 4. HTTP requestsFollowing Sina's homepage, let's summarize the process of the HTTP request:3.1.1 Step 1: The browser sends an HTTP request to the server first, and the request i
Classic analysis from instances-HTTP protocol (1)
The development technology of today's web programs is truly a battle, ASP. NET, PHP, JSP, Perl, AJAX, and so on. Regardless of the future development of Web technology, it is important to understand the basic protocols for communication between Web applications because they allow us to understand the internal work of Web applications. This article will expl
The principle of asp.net web programmingIIS schema and HTTP request processing process (1)******************************************************************Description"ASP.net Web programming principles," including a series of articles, derived from the "ASP." NET program of programming, the 8th chapter of the ASP.net development of some of the more complex issues are introduced, the main purpose is to itca
application defined in the user's global. asax file; · Modules
Handle events before and after the request; · HandlerFactories provides Handlers in the application; · Handlers processes requests and responses.
The HTTP processing pipeline model is as follows:
Figure 1: HTTP
MPs queue
On Windows, HTTP
Pipline requires
: This article mainly introduces nginx Study Notes 1 using nginx to build a simple HTTP server. if you are interested in PHP tutorials, refer to it. As a lightweight http server, nginx can handle highly concurrent http requests. It can also be configured as an http proxy ser
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.