1. Would like to send data to add to the FormData in (using XMLHttpRequest must add data to the FormData or it will protect the wrong)
p>
2. A new XMLHttpRequest out
p>
3. Use the open method to specify the way to request (post or get) and URL
p>
4. Set the callback method
p>
5. The most important step: use the send method (data is stored in the FormData inside the parentheses) to send data
p>
Read More:
- The JSON object is converted into a formdata object, and the formdata object is converted into a JSON object
- JS Ajax request is successful, the response displays “failed to load response data”
- React Native: TypeError: Network request failed
- When to enter success and error in AJAX
- Solve the problem of request method ‘get’ not supported
- Router DIO network request: dioerror[ DioErrorType.RESPONSE ]: HTTP status error [400] or [500]
- Four ways to get Django parameters in request
- Django + jQuery get data in the form + Ajax send data
- CSRF verification failed. Request aborted.
- TypeError:Network request failed
- can’t set headers after they are sent
- jsp: Failed to load resource: the server responded with a status of 400 (Bad Request)
- Click the button to use in the react project window.open Methods open a new page and click the data again
- Error: request failed with status code 500
- [How to Fix] NameError: name ‘requests‘ is not defined & NameError: name ‘request‘ is not defined
- Quirky error 18: transfer closed with outstanding read data rem
- React Native Network Request Failed solution
- Arithmetic overflow error converting numeric to data type numeric.
- errorCode: 500, msg: , result: {“Message”:”There was an error processing the request
- Error resolution of unexpected token in JSON at position 0