title: Web API with POST operation throws 404 error in Android
body: <p>My API works fine in Postman. However in my Android app it gives the following error:</p>
  
  <pre><code>BasicNetwork.performRequest: Unexpected response code 404
  com.android.volley.ClientError at 
  com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:199) at 
  com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:131) at
  com.android.volley.NetworkDispatcher.processRequest(NetworkDispatcher.java:111)
  at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)
  </code></pre>
  
  <p>My complete and minimal sample that demonstrates the error:</p>
  
  <pre><code>Map&lt;String, String&gt; params = new HashMap&lt;String, String&gt;(); 
  params.put("login_id",id); params.put("password",pass); 
  CustomRequest jsonObjRequest = new CustomRequest(Request.Method.POST,Url.Login,params,new 
  Response.Listener&lt;JSONObject&gt;() { 
      @Override public void onResponse(JSONObject response) { 
          Log.d("res", response.toString());
          ...
      }
  }
  </code></pre>