I use curl and Postman in Chrome to send POST HTTP requests from one variable to a simple HTTP server that I am running on, and I noticed that they build requests in a slightly different way. I apologize if I used any wrong terminology when constructing the question - I am still studying this material.
Using Postman, the query is built by putting '?' between the resource name and the variable. For instance.
http:
However, the following curl command:
curl -X POST http:
doesn't put a '?' between the resource name and the variable.
As a result, the HTTP server interprets requests differently.
In the first case, the request body is empty, and in the second case, the body contains a = b.
Which version is correct?
source share