Rambo
03-08-2014, 03:35 PM
I am working of a marabot of sorts. Heres the code so far:
private int marabot(){
Connection neo = new Connection("[Only registered and activated users can see links]"); // 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("[Only registered and activated users can see links]");
jLabel2.setText("Did Plushie Machine");
jLabel2.repaint();
}
return 0;
}
The login command doesnt work. In Python login works with this request:
values = {'id' : "useridinsert", 'password' : "passinsert"}
Zachafer
private int marabot(){
Connection neo = new Connection("[Only registered and activated users can see links]"); // 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("[Only registered and activated users can see links]");
jLabel2.setText("Did Plushie Machine");
jLabel2.repaint();
}
return 0;
}
The login command doesnt work. In Python login works with this request:
values = {'id' : "useridinsert", 'password' : "passinsert"}
Zachafer