I need to read XML document submitted to doPost() method ( I do not want to upload it, just read in and pass for further processing). Here is a general code that I use for now to see if file been received.
To test this I use curl utility to pass file to url as
However content of the file is not printed, only new line is added which means process riches sb.append(line + "\n"); command.
Any advice is welcome.
posted 7 years ago
Little late in the day , but here is answer.
Curl execution command was wrong
Window version with double quotes
Unix version with single quotes
And in case you interested in forwarding file to doPut() of your servlet use