Ajax data exchange post mode

handover code.
see the data interaction code written by a colleague.
what I understand is that request parameters cannot be concatenated in url as long as type is defined as post,.
but here, the request is successful. Want to know why?
if the request parameters are concatenated in url, and type is post, what"s the difference between post and get?
does not have a good understanding of ajax, so I hope you can help me.


May.12,2021

this is not impossible, but you will find that when you have more bytes of parameters after url, it will not work, because the length of url is limited. When the request method is post, you should put the parameters in data and operate according to the specification


because yours is query string parameters

No parameter serialization form data

you write the request parameters in the data of $.ajax
, and then send get and post, respectively to observe the network debugging information and you can see the difference

.

it is recommended to read more about http
http://www.java1234.com/a/jav.


I think it's because the backend uses $_ REQUEST to connect parameters
because $_ REQUEST contains $_ GET $_ POST and $_ COOKIE

by default.

I guess I'm also a front-end


jsonp specifying request method is invalid. jsonp only get method.
the difference between Baidu jsonp and ajax


GET can only send request header, which is a simple request, data type string,
post can send request header, picture stream, josn data, string, etc. When POST sends the request header data, that is, what you call the assembly string parameter, it actually comes with the get parameter in the past time of the POST request. The backend can use GET to obtain the data and POST data

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb2b00-23f7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb2b00-23f7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?