Web applications are usually divided into front and rear development, the backend provides interface calls back JSON objects, the foreground using the JS framework to load the back of the JSON
HTTP (Hypertext Transfer Protocol) is a request-and-response mode-based, stateless, application-level protocol, often based on TCP connection, HTTP1.1 version of a continuous connection mechanism, the vast majority of web development, is built on the HTTP protocol on the Web application. The HTTP URL (a URL is a special type of URI that contains enough information to find a resource) is in the following format: http://host[:p Ort][abs_path], where HTTP means to locate network resources through the HTTP protocol ; Host represents a legitimate Internet host domain name or IP address; port specifies a port number, and NULL uses the default port 80;abs_path to specify the URI of the requested resource, and if Abs_path is not given in the URL, it must be "/" when it is the request URI. In the form given, usually this work browser automatically helps us finish.
The HTTP request consists of three parts: the request line, the message header, and the request body.
JSON (javascriptobjectnotation) is a lightweight data exchange language that is text-based and easy to read. The JSON constructs two structures: 1), a collection of name/value pairs (a collection of name/value pairs). In different languages, it is understood as objects (object), recording (record), structure (struct), Dictionary (dictionary), hash table (hash table), keyed list (keyed list), or associative array (associative Array). 2), the value of the ordered list (an ordered list of values). In most languages, it is understood as an array (array).
HTTP interface Test