Question: do a post with curl?
Answer: Normal POST. 1.1 To POST without data. $ curl -X POST http://localhost:8080/api/login/ ...  POST + Multipart. To POST with a file, add this -F file=@"path/to/data.txt" 2.1 Upload a file. ...  POST + JSON. To POST with JSON data, add this -H "Content-Type: application/json" 3.1 On Windows, escape the double quotes.