Home >Backend Development >PHP Tutorial >Encountered a problem about sending data to the interface

Encountered a problem about sending data to the interface

WBOY
WBOYOriginal
2016-09-06 08:57:121043browse

Encountered a problem about sending data to the interface

In the interface testing tool, data can be returned normally

Encountered a problem about sending data to the interface

But send the same thing directly using the url

Encountered a problem about sending data to the interface

But got different results

Encountered a problem about sending data to the interface

Is the server unable to receive the sessionid or is the format wrong?

Reply content:

Encountered a problem about sending data to the interface

In the interface testing tool, data can be returned normally

Encountered a problem about sending data to the interface

But send the same thing directly using the url

Encountered a problem about sending data to the interface

But got different results

Encountered a problem about sending data to the interface

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn