I am sending a POST request to my localhost Tomcat 8.0 Servlet 3.1 web application but request.getParameter("") returns me null.
This is how I make my request.

I am using PostMan to perform my POST request. And on the java side, I am calling request.getParameter("code") and this gives me null. Same goes for qwe field. I am not using any framework. It's raw servlets. This is only a back-end so it's all about handling the data and responding to client.
If I use "x-www-form-urlencoded", I am able to retrieve the parameters through getParameter() call but I still want to know why I am not able to get form-data.
Thanks.
form-datamethod stores the request content in the body of the request, meaning you'd have to get it using aReaderorInputStream.getReader()'sreadLine()method gives me some data and I am able to see my parameter there but I cannot extract it because it has boundary string and needs to be handled separately (from what I've read). But people say this was handled in Servlet 3.0 and above. I am using 3.1 and I still can't get it. Any suggestions?getPart("")method to get the file from the form data either.