I am testing an http server, when I send a GET request to the server http://httpserver:10000/test.txt , this server replies with the content of the test.txt file. If I want to add a file to the server, or adjust a file, I assume I should use the method POST, but how to include the content and the name of the file ? Note that the server is java based, and it is acting as a fileserver.
I tried PUT request to the server with url in request= http://httpserver:10000/mytest.txt, but when checking the server, the file is not created. Note that I am using postman to build the requests.