Home >Backend Development >PHP Tutorial >Encountered a problem about sending data to the interface
In the interface testing tool, data can be returned normally
But send the same thing directly using the url
But got different results
Is the server unable to receive the sessionid or is the format wrong?
In the interface testing tool, data can be returned normally
But send the same thing directly using the url
But got different results
Is the server unable to receive the sessionid or is the format wrong?
The test tool submission method is post, and the url parameter is directly used as a get request, something goes wrong
The interface only supports POST, not GET
The request method sent using the browser URL is get, and the parameters of the get request method are included in the URL.
What you submit using the interface tool is a post request, and the request parameters are in the body of the request.
It is recommended that you use the postman tool:
https://chrome.google.com/web...
You are sending one by POST method and the other one by GET method. Of course they are different