Closed 130nk3r5 closed 6 years ago
The jschl_answer
is not int
in this check page,is double
,so your get a 403 response code.
I'll fix some time later
Ah, awesome! Thanks bro! I eagerly await your changes ;)
Made some changes...
private double get_answer(String str) { //取值 double a = 0;
a = v8.executeDoubleScript(sb.toString());
Once I get to the point where I have to cookes.... what do I do now ?
Below does not seem to work?
public String getSite(List<HttpCookie> cookies, String siteUrl ) { StringBuilder stringBuilder = new StringBuilder(); URL url = null; try { url = new URL(siteUrl); } catch (MalformedURLException e) { e.printStackTrace(); } HttpURLConnection con = null; try { con = (HttpURLConnection)url.openConnection(); con.setConnectTimeout(10000); String host = url.getHost(); con.setRequestProperty("Referer",host); con.setRequestProperty("User-Agent",getUA()); if (cookies != null) con.setRequestProperty("Cookie",cookies.toString()); if(con!=null) { BufferedReader br = new BufferedReader( new InputStreamReader(con.getInputStream())); String input; while ((input = br.readLine()) != null){ stringBuilder.append(input); } br.close(); } } catch (IOException e) { e.printStackTrace(); } return stringBuilder.toString(); }
Another point , At the end of the page script ,it's called toFixed()
. I'm add check on new version .
Getting a response of 403 on this check :
if (reqconn.getResponseCode()==302){
The site I am testing on is https://xmovies8.pl