URL 1.http composed of
http://127.0.0.1 :? 80 / AVI = Light Open
protocol request
IP address
port
interface address
interface parameters
Parameter Value
2.
1) request protocol:
- http - normal http request
- https - the encrypted http request, transmit data more secure
- ftp - file transfer protocol which is used to transfer files
2) requests IP: server address provides an interface system deployed
3) Request Port: 80 by default or fill another
4) Interface PATH: means an interface system provides what position
5) interface parameters: Parameters in the interface path, with "?" represents the path to address over, and the rest are parameters, and use the "&" to distinguish the number of parameters
3.http request method:
GET --- get resources by requesting the URI of the
POST --- for adding new content
PUT --- used to modify the contents of a
DELETE --- delete a content
CONNECT --- for agents transmission, such as using SSL
the OPTIONS --- ask what methods can be performed
PATCH --- part of the document changes
PROPFIND (wedav) --- view the properties
PROPPATCH (wedav) --- set the properties
collection MKCOL (wedav) --- created ( folder)
cOPY (wedav) --- copy
mOVE (wedav) --- mobile
LOCK (wedav) --- lock
uNLOCK (wedav) --- unlock
TRACE --- for remote diagnosis server
HEAD --- similar to gET, but does not return information body, for checking whether the object exists, the object and the metadata obtained
4, http request header
containing client environment and useful information request body.
For example, the request header can declare the language used by the browser, the length of the request body
the Accept: Image / gif.image / JPEG /.
The Accept-Language: ZH-CN Connection: the Keep-Alive the Host: localhost
the User-- Agent: Mozila / 4.0 ( compatible: MSIE5.01: Windows NT5.0) Accept -Encoding: gzip, deflate.
5.http request body
Request body is the body of the request and so on, there are very many requests bodies.
- json format
- xml format
- html format
- Binary format (mostly for pictures)
- String format