This is a creation in
Article, where the information may have evolved or changed.
Recently, a small partner has asked the following questions.
Handler gets a request, and then puts the request into a channel, and a gorutine always takes the value
Date: The date header field indicates the message sending time. The description format of the time is defined by rfc822. For example, Date: Mon, 31 Dec 2001 04: 25: 57gmt.
Age: When the current server uses its own cached entities to respond to
The HTTP status List response code consists of three-bit decimal digits that appear in the first line of the response sent by the HTTP server. The response code is divided into five types, represented by their first digit: 1xx: Information, request
$ OK//Customer request successBad Request//client requests have syntax errors and cannot be understood by the server401 Unauthorized//request is not authorized, this status code must be used with the Www-authenticate header403 Forbidden//server
Status-code-1xx:informational-request received, continuing process-2xx:success-the action was successfully received, Unde Rstood, and Accepted-3xx:redirection-further action must be taken on order to complete the request-4xx:client
1XX: InformationContinueThe server only receives partial requests, but once the server does not reject the request, the client should continue to send the remaining requests.101 Switching protocolsServer conversion protocol: The server translates
7.1 Status Code Overview
When a Web server responds to a request from a browser or other client, its answer typically consists of a status line, several answer headers, a blank line, and a content document. Here is one of the simplest answers:
http/
There are some support for stateless protocol requests (HTTP) in the JDK, and I'll describe a small example (component) I wrote:
Let's first build a request Class (Httprequester).
This class encapsulates the JAVA implementation code for a simple
the encoding in the 1.HttpServletRequest request is consistent
Using HTML form submitting data to the server, obtaining parameter values through Request.getparameter (key) in the servlet, because the default character encoding for HTTP requests is
Welcome reprint, but please indicate the source thank you: http://blog.csdn.net/shootyou/archive/2011/01/13/6135669.aspx
Let's talk about the principle:
When a client (PC browser or mobile browser) receives a response from Tomcat, the header is
7.1 Status Code Overview
When a Web server responds to a request from a browser or other client, its answer typically consists of a status line, several answer headers, a blank line, and a content document. Here is one of the simplest answers:
http/1
Request Header: The browser sends the requested data, resources, to the server. Response header: The server responds to the browser data and tells the browser who I am and what I want you to do. For example, I am nginx, give you the resources is
[Multi-figure] 25 wallpapers of the tux mascot penguin-general Linux technology-Linux technology and application information. For more information, see the following. Anyone who has used Linux should know that the mascot representing Linux is a
Linux latest kernel 2.6.29 comparison and evaluation-Linux general technology-Linux programming and kernel information, the following is a detailed description. One day ago, Linux released the latest 2.6.29 kernel. Next we will make a benchmark
Since 99, I began to contact with the network programming, the original project is written in C language a lot of CGI, can be described as the pain of the programming, because at that time the domestic technical level is generally relatively low, if
Introduction
There are already many good articles on the web that introduce HTTP. Some of the details of HTTP are better, so this article does not delve into the details of HTTP, but rather to classify the elements of the HTTP protocol from a
This article describes how to use Python to compile a super guide for HTTP servers. It also describes how to compile a web server based on the Python framework, recommended! For more information, see what is a network server first?
In short, it
First, what exactly is a Web server?
In short, it is a network connection server (Networking server) that is built on a physical server, permanently waiting for the client to send the request. When the server receives the request, it generates a
Although I have set the reading permission for this post, I will not name it if our moderators, core, and honors have lent their IDs to others.
If some of your friends in the internal team really need an ID to read the post in the Forum, let me know.
Reprint Source: Talking about HTTP protocolIntroductionThere are a lot of good articles on the web that introduce HTTP, some of the details of HTTP are better, so this article does not delve into the details of HTTP, but from a high enough and a
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.