title: How to decode http POST data in Java?
body: <p>I'm using Netty, and I've got to accept and parse http POST requests. As far as I can tell, Netty doesn't have built-in support for POSTs, only GETs. (It's a fairly low-level library that deals with primitive network operations. Using a servlet container, which does all this stuff out of the box, is not an option.)</p>
  
  <p>If I have the content of a POST request as an array of bytes, what's the fastest and most bug-free way to parse it into a Map of parameters?</p>
  
  <p>I could write this myself, but there <em>must</em> be some methods built into the JDK that make this easier. And I'll bet there are some gotchas and corner cases to deal with.</p>