Hallo Leute,
verusche mich mit einem eigenen Tool auf einer Webseite einzuloggen. Klappt aber irgendwie noch nicht. kann mir jemand evtl einen tip geben was noch falsch sein könnte? hier mein Quellcode
[Java]
URL to = new URL(url);
HttpURLConnection con = null;
con = (HttpURLConnection)to.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setAllowUserInteraction(false);
DataOutputStream printout = new DataOutputStream (con.getOutputStream ());
printout.writeBytes("benutzername="+uname);
printout.writeBytes("passw="+pass);
printout.flush ();
printout.close ();
[/Java]
verusche mich mit einem eigenen Tool auf einer Webseite einzuloggen. Klappt aber irgendwie noch nicht. kann mir jemand evtl einen tip geben was noch falsch sein könnte? hier mein Quellcode
[Java]
URL to = new URL(url);
HttpURLConnection con = null;
con = (HttpURLConnection)to.openConnection();
con.setDoInput(true);
con.setDoOutput(true);
con.setUseCaches(false);
con.setAllowUserInteraction(false);
DataOutputStream printout = new DataOutputStream (con.getOutputStream ());
printout.writeBytes("benutzername="+uname);
printout.writeBytes("passw="+pass);
printout.flush ();
printout.close ();
[/Java]