title: Volley body 400 error
body: <p>I want to send a POST to a server with the body that is true or false. I have this code and I use the Volley library</p>
  
  <p>ShoozyHeader() set Content type to text/plain and Accept to text/plain and other headers necessary for the authentication.</p>
  
  <p>If I try on <a href="http://requestmaker.com/" rel="nofollow">http://requestmaker.com/</a> and the server responds correctly but I run this code the server responds:</p>
  
  <p>Bad Request - Invalid Header
  HTTP Error 400. The request has an invalid header name.</p>
  
  <p>If I remove the getBody() the server respond fine.</p>
  
  <pre><code>    final String url = POSTS_URI + idPost + "/likes";
  
      StringRequest strReq = new StringRequest(Request.Method.POST,
              url, new Response.Listener&lt;String&gt;() {
  
          @Override
          public void onResponse(String response) {
              Log.d(TAG, response);
          }
      }, new Response.ErrorListener() {
  
          @Override
          public void onErrorResponse(VolleyError error) {
              VolleyLog.d(TAG, "Error: " + error.getMessage());
              Toast.makeText(act, "Network error", Toast.LENGTH_SHORT).show();
          }
      }
      ) {
          @Override
          public byte[] getBody() throws AuthFailureError {
              return "true".getBytes();
          }
      };
  </code></pre>