ti consiglio quella package di commons: più chiara di quella non c'è niente.
codice:PostMethod post = new PostMethod("http://s5.vendetta1923.it/vendetta/login.php"); NameValuePair[] data = { new NameValuePair("ln", "NomeUtente"), new NameValuePair("pw", "PasswordUtente"), new NameValuePair("antiback", ((new Date()).getTime()/1000)+"") //che brutta questa :zizi: }; post.setRequestBody(data); // execute method and handle any error responses. ... InputStream in = post.getResponseBodyAsStream();

Rispondi quotando