title: Trouble with Volley Library
body: <p>I try to get response in my application, when I try to call API using volley library, it's giving <code>com.android.volley.ServerError</code> and response code 400.
  Here is my code</p>
  
  <pre><code>RequestQueue requestQueue = Volley.newRequestQueue(this);
      try
      {
          //start bottom
          String url="http://api.tektravels.com/BookingEngineService_Air/AirService.svc/rest/GetBookingDetails";
          url = url.replaceAll(" ", "%20");
          //String url="http://api.tektravels.com/BookingEngineService_Air/AirService.svc/rest/Search/";
          JSONObject jsonObject = new JSONObject();
          jsonObject.put("EndUserIp","216.10.251.69");
          jsonObject.put("TokenId","0307b931-bd7d-4860-9c4d-4d65103ebddc");
          jsonObject.put("PNR","ZERD8U");
          jsonObject.put("BookingId","1401272");
          Log.i("JsonObject",jsonObject.toString());
          JsonObjectRequest jsonobjectreq = new JsonObjectRequest(Request.Method.POST, url,jsonObject,
                  new Response.Listener&lt;JSONObject&gt;() {
                      @Override
                      public void onResponse(JSONObject response)
                      {
                          Log.i("response",response.toString());
                          progressDialog.dismiss();
                      }
                  }
  </code></pre>
  
  <p>It is working in postman.The error i got </p>
  
  <pre><code>com.android.volley.ServerError
  </code></pre>
  
  <p>The Log is </p>
  
  <pre><code>10-12 10:34:19.525 7149-7189/com.farehawker E/Volley: [387] BasicNetwork.performRequest: Unexpected response code 400 for http://api.tektravels.com/BookingEngineService_Air/AirService.svc/rest/GetBookingDetails
  10-12 10:34:19.529 7149-7149/com.farehawker I/Error: com.android.volley.ServerError
  </code></pre>
  
  <ul>
  <li><p>The json I am sending is</p>
  
  <p>{"EndUserIp":"216.10.251.69","TokenId":"0307b931-bd7d-4860-9c4d-4d65103ebddc","PNR":"ZERD8U","BookingId":"1401272"}</p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/NVHu9.png" rel="nofollow noreferrer">Postman request</a>
  <a href="https://i.stack.imgur.com/rD5MX.png" rel="nofollow noreferrer">Postman response</a></p>