Chapter One: Understanding Web and Network Fundamentals1.http: Hypertext Transfer Protocol2.TCP/IP protocol family: The network usually used is based on the TCP/IP protocol family, and HTTP belongs to a subset within it.The 3.TCP/IP protocol family is divided into the following layers: application layer, Transport layer, network layer, data link layer, respectively. The benefit of stratification is clear di
client error-request syntax error or request cannot be implemented
5xx server-side error-the server fails to implement valid requests
Look at some common status codes
200 OK
The most common is the successful response status code 200, which indicates that the request is successfully completed and the requested resource is sent back to the client.
For example, open the blog Home Page
302 found
Redirection. The new URL will be returned in location in response, and the browser will automatically
Problem Description: Exception in Thread "" http-bio-80 "-exec-1" Java.lang.OutOfMemoryError:PermGen s Exception in Thread "" Http-bio-80 "-exec-1" Java.lang.OutOfMemoryError:PermGen space at Java.lang.ClassLoader.defineClass1 (Native Method) at Java.lang.ClassLoader.defineClass (classloader.java:621) at Java.secur
headers and responses to mechanisms such as identity authentication, state management, and cache caching.HTTP request method: GET, POST, HEAD, PUT, DELETE, MOVE.HTTP common status code: 200-OK, 301-Permanent jump, 403-Forbidden, 404-not Found, 500-Internal server error, 502-bad Gateway, 503-Server is currently unavailable, 504-gateway timed out.Curl-i www.baidu.com #查看状态码
The key of the Java implementation HTTP Proxy is to forward the received HTTP request to the hosted host, and then forward the host's return data to the client
Key points:1. HTTP protocol
2. Java Blocking IO
3. A key point in using Java blocking IO to forward HTTP requests i
closely related to web development.Transport LayerThe transport layer provides the user with reliable end-to-end (end-to-end) services, such as client-to-server services.The transport layer shields the details of the underlying data communication from the upper layers, as the upper application does not need to focus on the underlying implementation details, which reduces the amount of data and improves security.The transport layer has two protocols: the TCP protocol and the UDP protocol.Applica
This section would continue the actual configure for IHS related files.3) Copy The httpd.conf file to httpd2.conf, and modify them. Now Virtual IP has been added, and it's port has been released, so we can start to do some needed configure. Firstly, copy the httpd.conf file as httpd2.conf.For Apache based server, 1 Apache server instance need 1 httpd.conf file. And what we need to be configured includes:pid
HTTP is a plane object protocol at the application layer. It is applicable to distributed hypermedia information systems due to its simple and fast method. It proposed in 1990 that, after several years of use and development, it has been continuously improved and expanded. Currently, the sixth version of HTTP/1.0 is used in WWW, standardization of HTTP/1.1 is in
Transferred from: http://www.cnblogs.com/cswolf/archive/2011/10/11/2267129.htmlintroduction
HTTP is an object-oriented protocol at the application layer. It is applicable to distributed hypermedia information systems due to its simple and fast method. It proposed in 1990 that, after several years of use and development, it has been continuously improved and expanded. Currently, the sixth version of
(1) first recognized HTTP message headerAnyone who is engaged in Web development cannot do without HTTP (Hypertext Transfer Protocol). To understand HTTP, apart from HTML, there is also a part of the HTTP message header that cannot be ignored.
Anyone who has done socket prog
URI URLURI (uniform-provides a uniform format for easy handling of many different types of resources without the need to identify resource-specific access patterns based on context, adding new protocol schemes is easierresource-definition is "can identify anything", in addition to document files, images or services, etc. can be distinguished from other types, all can be used as resources. Resources can be not only single, but also a majority of aggregatesIdentifier0 represents an identifiable
also changed to a unique value, for example-name riak2@127.0.0.1
Start each node in sequence, as shown in figureList 1.
Listing 1. Listing 1. starting each node
$ cd rel$ ./riak/bin/riak start$ ./riak2/bin/riak start$ ./riak3/bin/riak start
Finally, connect the nodes to form a cluster, suchList 2.
Listing 2. Listing 2. forming a cluster
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
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.