In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to implement the HTTP protocol of ASP.NET programming model". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to implement the HTTP protocol in the ASP.NET programming model.
Let's first create an aspx page with only a button and a text box dragged up, open Fiddler, and then browse to the page we just created. If we look at Fiddler, we will see:
The content of the box above is actually the content submitted by the browser to the server after you type in the address and press enter. The server gets the information and parses it, and then provides you with the corresponding page according to your request. Let's first give a brief introduction to the content here:
GET: it is followed by the location of a web page, and 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 version of the protocol, 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 on which the resource is requested, which must indicate the location of the original server or gateway requesting the url. The HTTP/1.1 request must contain the host header domain, otherwise the system will return with a 400 status code.
User-Agent: contains information about the user who made the request, which identifies the type of browser that made the request.
Connection: close a connection or keep a connection valid
ASP.NET programming Model HTTP response of HTTP Protocol
The server response includes a status line consisting of the protocol version of the message and an exit code indicating success or error. The status line is followed by several headers (usually the content type and length of the page) and the body content. A blank line separates the subject content from the rest of the message. As shown in the following figure, the response content of the page just visited is shown below:
The server response includes a status line consisting of the protocol version of the message and an exit code indicating success or error. The status line is followed by several headers (usually the content type and length of the page) and the body content. A blank line separates the subject content from the rest of the message. As shown in the following figure, the response content of the page just visited is shown below:
The code 200 of the * line indicates that everything is normal for the request, the server content is the server information, and the Content-Type is used to indicate the media type of the entity to the receiver, and to specify the entity media type that the HEAD method sends to the receiver. The text format provided here means encoded as utf-8.
At this point, I believe that everyone on the "ASP.NET programming model HTTP protocol implementation" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.