This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
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 6 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