Forums Register Login

Problem with reading submitted document

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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
Thank you my well lotioned goddess! Here, have my favorite tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1371 times.
Similar Threads
To print MAX and MIN line from a text file
HttpUrlConnection is not working
HttpUrlConnection is not working
HttpUrlConnection is not working
convert .txt file in .csv format
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 09:22:25.