I am working of a marabot of sorts. Heres the code so far:
Code:
private int marabot(){
Connection neo = new Connection("http://www.marapets.com"); // makes new object
jLabel2.setText("Established Connection...");
jLabel2.repaint();
jTextArea1.setText(neo.post("/dologin.php", new String [][] {{"id", "USERIDINSERT"}, {"password", "insert password"}})); //login
jLabel2.setText("Logged in...");
jLabel2.repaint();
String strHTML = neo.get("/countdown.php");
// plushie machine
if(strHTML.contains("You can use the Plushie Machine now"))
{
neo.get("http://www.marapets.com/plushies.php?do=claw&pos=right");
jLabel2.setText("Did Plushie Machine");
jLabel2.repaint();
}
return 0;
}
The login command doesnt work. In Python login works with this request:
Code:
values = {'id' : "useridinsert", 'password' : "passinsert"}
@(you need an account to see links)