I tried this
private static String readUrl(String urlString) throws Exception {
BufferedReader reader = null;
try {
URL url = new URL(urlString);
reader = new BufferedReader(new InputStreamReader(url.openStream()));
StringBuffer buffer = new StringBuffer();
int read;
char[] chars = new char[1024];
while ((read = reader.read(chars)) != -1)
buffer.append(chars, 0, read);
return buffer.toString();
} finally {
if (reader != null)
reader.close();
}
}
But it returned
<script>
document.cookie = 'BXID=AAAAAAUo78YKTFtc33JkgZ25mtq287qQum8hFjskkvwbnF0MBw==; path=/; domain=biletix.com';
location.reload(true);
</script><noscript>Couldnot find javascript support. please enable it</noscript>
I want to get objects from http://www.biletix.com/search/TURKIYE/en#!subcat_interval:12/12/15TO19/12/15
From here, i can get what i want but is it only way to create this URL
and how to create this?
I am using this in Eclipse
but i will migrate to Android.
I can not find examples about creating this url.
http://stackoverflow.com/questions/7467568/parsing-json-from-url
http://stackoverflow.com/questions/10500775/parse-json-from-httpurlconnection-object
http://en.proft.me/2013/12/5/how-parse-json-java/
But those dont work because i cant parse String