Can't open an url with loadJSONObject but it works with HTTP Library

I solved the problem using java’s HTTPUrlConnection to add the User Agent to my request and then by parsing the output to JSON