DasDas
DasDas

Reputation: 581

Java servlet- Best way to get post requests body

I'm getting a post request- with a XML in the body. what is the best way to get the requests body?

cheers:)

Upvotes: 0

Views: 863

Answers (1)

JB Nizet
JB Nizet

Reputation: 692151

Use request.getInputStream() to get the body as an InputStream, and parse this stream with an XML parser.

Upvotes: 2

Related Questions