Can't send a correct POST request in Java (Android Studio)
<p>I'm creating an app for asking/answering questions. 
I have a problem with POST request when I ask questions.</p>

<p>I've tried to use something like this in terminal</p>

<pre><code>curl -H "Content-Type: application/json" -d '{"firstName":"Chris", "lastName": "Chang", "email": "support@mlab.com"}' http://your-app-name.herokuapp.com/contacts
</code></pre>

<p>and it worked good.</p>

<p>But when I try to send a POST request in AndroidStudio my parameters (such as name, lastname, email and etc) won't send. 
I tried to use <a href="https://github.com/kevinsawicki/http-request" rel="nofollow">https://github.com/kevinsawicki/http-request</a>. The request is send (I know that because it shows the date of the request) but without any parameters.</p>

<p>What should be changed in my code so it would work correctly?</p>

<pre><code>Map&lt;String, String&gt; data = new HashMap&lt;String, String&gt;();
data.put("firstName", "Gena");
data.put("lastName", "Bukin");
if (HttpRequest.post("https://safe-citadel-91138.herokuapp.com/questions").form(data).created())
System.out.println("User was created");
</code></pre>