title: Android can not send post request with volley(BasicNetwork.performRequest: Unexpected response code 404)
body: <p>I am trying to send some info to my api with post method(volley), but keep getting errors. Most consistent and the latest one is </p>
  
  <p>E/Volley: [1449] BasicNetwork.performRequest: Unexpected response code 404 for http://....
  D/Error.Response: com.android.volley.ClientError</p>
  
  <p>I am able to post it with postman but not in android. I am sure nothing is wrong in the other side. I don't know what to do.</p>
  
  <p>I have tried several implementations with getheader(),getBodyContentType(), Json object, string, parsing, try catch and so on..</p>
  
  <pre><code>RequestQueue queue = Volley.newRequestQueue(this);
      String url = "....";
      StringRequest postRequest = new StringRequest(Request.Method.POST, url,
              new Response.Listener&lt;String&gt;()
              {
                  @Override
                  public void onResponse(String response) {
                      // response
  
                      Log.d("Response", response);
                  }
              },
              new Response.ErrorListener()
              {
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      // error
                      Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();
                      Log.d("Error.Response", error.toString());
                  }
              }
      ) {
          @Override
          public Map&lt;String, String&gt; getParams()
          {
              Map&lt;String, String&gt;  params = new HashMap&lt;String, String&gt;();
              params.put("email", "test@email.com");
              params.put("token", "token");
  
              return params;
          }
  
      };
      queue.add(postRequest);
  </code></pre>