Not getting response from URL in volley but working in postman
<p><strong>Introduction -</strong></p>

<p>I am trying to get json response from a external url. it does not require any special auth or header. we can just put it on as a url in web browser and get the response. but i am getting error in volley jsonrequest.</p>

<p><strong>URL -</strong>
<a href="https://www.nseindia.com/live_market/dynaContent/live_watch/stock_watch/niftyStockWatch.json" rel="nofollow noreferrer">https://www.nseindia.com/live_market/dynaContent/live_watch/stock_watch/niftyStockWatch.json</a></p>

<p><strong>Error i am getting in Volley -</strong></p>

<p>com.android.volley.AuthFailureError</p>

<p><strong>Volley Request -</strong></p>

<pre><code>JsonObjectRequest jsonObjectRequest =
new JsonObjectRequest(Request.Method.GET,
                      "https://www.nseindia.com/live_market/dynaContent/live_watch/stock_watch/niftyStockWatch.json",
                      null,
                      new Response.Listener&lt;JSONObject&gt;() {
                         @Override
                         public void onResponse(JSONObject response) {
                         Log.i("TAG","response : " + response);
                         }
                      },
                      new Response.ErrorListener() {
                         @Override
                         public void onErrorResponse(VolleyError error) {
                         Log.i("TAG","error : " + error);
                         }
                      });
queue.add(jsonObjectRequest);
</code></pre>

<p><strong>Edit -</strong></p>

<p>The GET Request code that is being sent in Postman is -</p>

<pre><code>GET
/live_market/dynaContent/live_watch/stock_watch/juniorNiftyStockWatch.json HTTP/1.1
Host: www.nseindia.com
Cache-Control: no-cache
Postman-Token: 6fd9baa2-9313-a592-fff4-445b3c5e25d2
</code></pre>

<p><em>This might be helpful to suggest me why i am unable to get the same response in volley as in postman.</em></p>

<p>I was wandering as i just put a GET request in postman with the URL, i get the response. but why i am not getting same response from the volley ?</p>