title: How to send request Header is "Content-Type":"application/json" when GET on Volley
body: <p>I try to use GET on Volley , but i need send request to <code>application/json</code> .</p>
  
  <p>I take a look for some answers , i try to use <code>jsonBody</code> , but it shows error:</p>
  
  <blockquote>
    <p>null com.android.volley.ServerError</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code>public class MainActivity extends AppCompatActivity {
  
      String url = "http://114.35.246.42:2212/MobileApp/DEST_WebService.asmx/GetNews";
      JSONObject jsonBody;
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_main);
          try {
              //I try to use this for send Header is application/json
              jsonBody = new JSONObject("{\"type\":\"example\"}");
          } catch (JSONException ex) {
              ex.printStackTrace();
          }
  
          RequestQueue mQueue = Volley.newRequestQueue(getApplicationContext());
  
          JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(url, jsonBody,
                  new Response.Listener&lt;JSONObject&gt;() {
  
  
                      @Override
                      public void onResponse(JSONObject response) {
                          Log.d("TAG", response.toString());
                      }
                  }, new Response.ErrorListener() {
  
              @Override
              public void onErrorResponse(VolleyError error) {
                  Log.e("TAG", error.getMessage(), error);
              }
  
  
          });
  
  
          mQueue.add(jsonObjectRequest);
  
      }
  
  
  }
  </code></pre>
  
  <p>Is any one can teach me how to fix this , any help would be appreciated.</p>
  
  <p>Here is my url:
  <code>String url = "http://114.35.246.42:2212/MobileApp/DEST_WebService.asmx/GetNews";</code></p>