HTTP interface Test

Source: Internet
Author: User

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

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.