I wrote some simple code in Java, the method should connect to the website and return the BufferedReader.
private BufferedReader getConnection(String url_a)
Most likely the headers you are setting is incorrect or not acceptable.
Example: connnection.setRequestProperty("content-type", "application/json");