1. Query string data (String)
Like:?key1=value1& Key2 = value2
use
requisition.get ("key", "value")
GET
2.request-getlist ("key", [])
GET the last value
Ii. Request Body Data (BODY) :
For example: form data, JSON,…
2.1 form data :(only post requests are supported)
request.POST.get("name", "")
2.1 json data :(post and put requests are supported)
Loads (json_str) json_str = request. Body # attribute to get the original request data
json_dict = json.json (json_str)
# convert the original data into dictionary format
json_dict. Get ("key", "default value ")
# get the data
3. Specific part of data in the URL path
Regular, or routing converter
4. Request Header Data (HEADER) :
request.MEAT.get("key")
Read More:
- Three ways to get form data in struct2
- Error domain = nsurlerrordomain code = – 1001 “request timeout occurred in swift alamofire get request. ” UserInfo={NSUnderlyingErro
- GeTx reports an error in the get request using getconnect
- Django + jQuery get data in the form + Ajax send data
- The problem that headers [‘content-type ‘] does not work is set in the Axios get method request interface
- How to solve the problem of error reporting in the introduction of Python Django no module name ‘Django. Utils. Six’
- Forbidden (403) CSRF verification failed. Request aborted. – Django
- TypeError: Failed to execute ‘fetch‘ on ‘Window‘: Request with GET/HEAD method cannot have body.
- [nodejs] error request aborted after request routing in post mode
- request:fail url not in domain list or Cannot send network request to localhost
- Request cannot get static resource
- class.getResource () and ClassLoader.getResource How to fill in the parameters in ()
- Nginx modifies the front end request size limit (413 request entity too large)
- An error occurs when pymysql uses% d to pass in parameters
- One of the ways to solve the problem of internal server error in flash learning
- In the HTML page request Ajax times 400 error, solve Yii submit post form 400 error, and Ajax post request 400 problem (example code)
- Flask Request an extension before_request after_request errorhandler
- Three ways of adding cookie by scratch
- IIS “Bad Request – Request Too Long. HTTP Error 400. The size of the request headers is too long.”
- C#: How to Use Httpclient to upload files with other parameters