Axios secondary encapsulated interface, sending a post request, however, behind the url in the transmission parameters,
As a result, the server response to my request, but no response I parameters, (this sentence is a little man: server port to return to the first page of article 20 of each page by default; My request is the first page of each page 2 information; As a result, the server or 20 pieces of information back to give me the first page of each page)
A get request through the interface test parameter perfectly normal
Through the way of using the interface also, tested the post, it is also possible that the server supports a post request
Don't understand is the interface encapsulates the problems or something else? But why browsers to identify my mode of transmission is the POST, but also add parameters behind the url??????? And why am I still responded to my request?
CodePudding user response:
The get data is params receivingPost data is the data receiving
CodePudding user response:
Is so, thank you for your great god answersCodePudding user response:
Query to a part of the URL, has nothing to do with the HTTP method, a POST request can also carry the query, will happen depends on how the back-end parsing, as for the two query params are which come of, it all depends on your code,CodePudding user response:
Why will appear this problem, why we post method will stitching parameters, params and what is the difference between the data parameters?