The most commonly used front-end sending requests are get requests and post requests
The get request can only pass the query parameter, and the query parameter is spliced on the request address.
Post can pass body and query parameters.
The parameters transmitted in the url of the get request are limited in length, but there is no limit in the post.
get is less secure than post, because the parameters are directly exposed on the url, so they cannot be used to pass sensitive information.
The parameters of data->body
params->query are spliced into the browser address
query refers to the parameters of the request, generally refers to the URL? parameters that follow.
For example, pretty=true in http://10.6.6.6:8080/api/v1/namespaces?pretty=true is query
Get method:
form-data request data type
Parameters are spliced to the path
Use template strings to splice parameters to the path
Post method:
JSON request data type
form-data request data type
The request type has both query and formData
data corresponds to formData data, and params corresponds to query data.