HTTP protocol analysis of ASP. NET Programming Model

Source: Internet
Author: User

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.

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.