get post

When entering a URL address in the browser address bar or clicking a hyperlink on a web page, it must be a GET request.

If the method attribute of the <form> form element in the web page is set to GET, it is also a get request.

Use the GET request method to pass parameters to the WEB server in the format: http............jsp ?name=xxx&password=xxx.

Use the GET method to transmit to a limited amount of data


The POST request method is mainly used to submit the data in the FORM form to the WEB server-side program: set the method to post

The POST method sends each form field element and its data as the entity content of the HTTP message to the WEB server. The amount of data transmitted is theoretically unlimited.

POST /conter.jsp HTTP/1.1

referer:http/localhost:8080/Register.html

content-type:appliaction/x-www-form-urlencoded

host:localhost:8080

content-length:43

name = zhangsan&password=123 -- parameters are passed in the request body: ?

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325769586&siteId=291194637