title: Getting 400 volley server error which is working from Rest client successfully
body: <p>Am getting 400 server error for volley get request for below url</p>
  
  <pre><code>http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in ('AEDALL')&amp;format=json&amp;env=store://datatables.org/alltableswithkeys&amp;callback=
  </code></pre>
  
  <p>when i hit the same url from rest client its giving json response</p>
  
  <p>Here is my code for volley request</p>
  
  <pre><code>private void convertCurrenctVolleyTask(String from, final String to, final String amount) {
  
      String url_yahoo = "http://query.yahooapis.com/v1/public/yql?q=select * from yahoo.finance.xchange where pair in ('"+from+to+"')&amp;format=json&amp;env=store://datatables.org/alltableswithkeys&amp;callback=";
  
      final ProgressDialog progressDialog;
      progressDialog = new ProgressDialog(CurrencyConverter.this);
      progressDialog.setMessage("Please wait...");
      progressDialog.setCancelable(true);
      progressDialog.show();
  
      JsonObjectRequest GetCurrenciesjsObjRequest = new JsonObjectRequest(
              Request.Method.GET, url_yahoo, null,
              new Response.Listener&lt;JSONObject&gt;() {
  
                  @Override
                  public void onResponse(JSONObject response) {
                      progressDialog.cancel();
                      if (response != null) {
                              parseGetCurrencyResp(response,to,amount);
  
                      }
                  }
              }, new Response.ErrorListener() {
  
                  @Override
                  public void onErrorResponse(VolleyError error) {
                      progressDialog.cancel();
                      Toast.makeText(CurrencyConverter.this,
                              "Server error..", Toast.LENGTH_SHORT).show();
                      error.printStackTrace();
  
                  }
              });
  
      ConfigVolley.getInstance().addToRequestQueue(GetCurrenciesjsObjRequest);
  
  }
  </code></pre>
  
  <p>Any help appreciated</p>