For many web sites monitoring in developer console the network traffic, reveals transformation of text files which are virtually JSON's.
But when I trying to fetch this data via code, for some web sites I get:
- Status 403
- The text inside the file is not the expected JSON, rather error message.
What can be wrong? From the code point of view - it seems OK, the URL is correct (copy paste to browser works fine) and the code executes fine.
For me it seems that the URL is working OK within browser but not from code.
Code for example (java): simplest way to read json from a URL in java