http – CURL Command Line URL Parameters – Stack Overflow

The application/x-www-form-urlencoded Content-type header is not needed. Unless the request handler expects the parameters coming from request body. Try it out:

curl -X DELETE "http://localhost:5000/locations?id=3"

or

curl -X GET "http://localhost:5000/locations?id=3"

 

Source: http – CURL Command Line URL Parameters – Stack Overflow

http – CURL Command Line URL Parameters – Stack Overflow was last modified: November 3rd, 2020 by Jovan Stosic

Leave a Reply