HTTP request of ASP. NET Programming Model HTTP protocol
First create An aspx page drag up only one button and a text box, open Fiddler this is a Microsoft employee developed HTTP debugging tool, http://www.fiddlertool.com/), and then browse the page just created. View Fiddler. We will see:
The content in the above box is actually the content submitted to the server by the browser after you press enter, and the server obtains the information and parses it, then, we will provide you with the corresponding page based on your request. Let's briefly introduce the content here:
GET: it follows the location of a webpage. The server accepts the request and returns the requested page. In addition to the page location as a parameter, the request can also follow the protocol version such as HTTP/1.0 as a parameter to send more information to the server.
Accept-Language: Current browser Language
Host: specifies the Intenet Host and port number of the requested resource, which must represent the location of the original server or gateway of the request url. The HTTP/1.1 request must contain the Host Header domain; otherwise, the system returns the status code 400.
User-Agent: contains the User information of the request, which identifies the browser type of the request.
Connection: close a Connection or keep a Connection valid.
HTTP Response of ASP. NET Programming Model HTTP protocol
A server response includes a status line, which consists of the Protocol version of the message and an exit code indicating success or error. The status line is followed by several headers, which are usually the content type and length of the page) and the body content. An empty line separates the topic content from the rest of the message. For example, the response content of the page just accessed:
A server response includes a status line, which consists of the Protocol version of the message and an exit code indicating success or error. The status line is followed by several headers, which are usually the content type and length of the page) and the body content. An empty line separates the topic content from the rest of the message. For example, the response content of the page just accessed:
Code 200 in the first line indicates that the request is normal. The Content of the server is the server information. Content-Type indicates the media Type of the object to the receiver, and specifies the object media Type sent by the HEAD Method to the receiver, the text format is UTF-8 encoded.
The relevant analysis of the HTTP protocol of the ASP. NET programming model is introduced here. I hope to help you understand the HTTP protocol of the ASP. NET programming model.