2014-03-14

Hypothesis

I've been trying to find a way to authenticate mopar votes and simply referencing the page is my best conclusion.

Problem

I can't get passed Mopar's 'accept our terms' page via my code.

Code

 Click to show spoiler

Code:

        public void getMoparVotes() {

                try {

                        BufferedReader reader =

                                new BufferedReader(new InputStreamReader(

                                new URL("http://www.moparscape.org/serverstatus.php?server=198.105.223.243").openStream()));

                        String data = null;

                        int line = 0;

                        while((data = reader.readLine()) != null) {

                                System.out.println(line++ + " " + data);

                        }

                       

                        reader.close();

                } catch (Exception e) {

                        e.printStackTrace();

                }

        }

Output:

http://puu.sh/7viqq.png

or

 Click to show spoiler

0 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

1 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

2 <html xmlns="http://www.w3.org/1999/xhtml">

3

4 <head>

5 <title>Terms Of Service</title>

6 <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

7 <link rel="stylesheet" type="text/css" href="//www.moparisthebest.com/tos.css" />

8 </head>

9 <body>

10 <div id="wrapper">

11

12 <div id="header">

13 <div id="banner"><h1>Terms Of Service</h1></div>

14 </div>

15

16

17 <div id="leftcolumn">

18 </div>

19

20 <div id="centercolumn">

21 By clicking <i>'I Agree'</i> you agree to everything stated below:

22 <ol>

23

24 <li>You are not an employee of Jagex LTD, or runescape,

25 and are not a family member or acquaintance of the aforementioned.</li>

26

27 <li>You are not an employee of any law firm contracted with Jagex LTD,

28 and are not a family member or acquaintance of said firm.</li>

29

30 <li>You do not currently play runescape, or any other Jagex game, and are therefore not

31 subject to their TOS or any other agreement with them.</li>

32

33 <li>All of the information on this site is solely for learning purposes, as

34 the main purpose of this site is to instruct people in the art of programming.

35 All programs provided for download from this site are entirely coded by the members

36 of this community and are not the intellectual property of any business or organization.

37 </li>

38

39 </ol>

40 <div class="center">

41 Click <i>'I Agree'</i> if, and only if, you agree to <i>ALL</i> of the above terms.<br />

42 You must have cookies enabled for this to work.<br />

43 <a href="http://www.moparscape.org/tos/agr/serverstatus.php?server=198.105.223.243"><h1>I Agree</h1></a><a href="http://www.moparscape.org/tos/dis"><h1>Cancel</h1></a>

44 </div>

45 </div>

46

47 <div id="rightcolumn">

48 </div>

49

50 <div id="footer">

51 <p>

52 <a href="http://validator.w3.org/check?uri=referer"><img

53 src="http://www.w3.org/Icons/valid-xhtml10-blue"

54 alt="Valid XHTML 1.0 Strict" height="31" width="88" /></a>

55 Copyright © 2009 MoparScape.org

56 <a href="http://jigsaw.w3.org/css-validator/check/referer">

57 <img style="border:0;width:88px;height:31px"

58 src="http://jigsaw.w3.org/css-validator/images/vcss-blue"

59 alt="Valid CSS!" />

60 </a>

61 </p>

62 </div>

63

64 </div>

65

66

67

68 </body></html>

Show more