I am having trouble with accessing my JSON
in android file which is located at this website. I am getting an error message java.net.UnknownHostException: umsjitm.cutm.org
. This is my code:
HttpClient client = new DefaultHttpClient();
URI website = new URI("http://umsjitm.cutm.org/GreycellsRestAPI /1/loadStudCompList?callback=listStudCompList¤tWingOid=3");
HttpGet request = new HttpGet();
request.setURI(website);
HttpResponse response = client.execute(request);
What is wrong with my code?
If I use http://117.240.237.10/GreycellsRestAPI/1/loadStudCompList?callback=listStudCompList¤tWingOid=1
link, it is working perfectly. Please tell me what am I missing?
Problem doesn't seem to be with Android. A ping to umsjitm.cutm.org
resolves to 117.240.237.7
Clicking on the link gives a 404 to me.
Also, i don't see a CNAME
entry to 117.240.237.10
in the DNS Records for umsjitm.cutm.org