title: Android Volley - make POST with body and url parameters - getParams and getBody at the same time
body: <p>I have simple question which method to call on POST and which method to call on GET.</p>
  
  <p>This is my simple Class:</p>
  
  <pre><code>public class CustomStringRequest extends Request&lt;CustomNetworkResponse&gt; {
  
  private final Map&lt;String, String&gt; headers;
  private final Map&lt;String, String&gt; params;
  private final String body;
  private final Response.Listener&lt;CustomNetworkResponse&gt; listener;
  
  
  public CustomStringRequest(int method,
                             String url,
                             Map&lt;String, String&gt; headers,
                             Map&lt;String, String&gt; params,
                             String body,
                             Response.Listener&lt;CustomNetworkResponse&gt; listener,
                             Response.ErrorListener errorListener) {
  
      super(method, url, errorListener);
      this.headers = headers;
      this.params = params;
      this.body = body;
      this.listener = listener;
  }
  
  
  
  @Override
  public Map&lt;String, String&gt; getHeaders() throws AuthFailureError {
      return headers != null ? headers : super.getHeaders();
  }
  
  @Override
  public Map&lt;String, String&gt; getParams() {
      return params;
  }
  
  @Override
  public byte[] getBody() throws AuthFailureError {
      return body != null ? body.getBytes() : null;
  }
  </code></pre>
  
  <p>How can I use getParams() and getBody() at the same time? Is it possible, because when I check the super implementation I assume it's impossible.</p>
  
  <p>I also commented out the method getBody() to see thats true. </p>
  
  <p>Does that mean that i can't send POST with body and also url parameters? Are url parameters meant to be used for GET request?? Is this standard? </p>