Ho usato metodi del genere per eseguire una pagina PHP in questo modo:
Magari prova a consultare la documentazione ufficiale riguardo alla classe URLConnection o fai ricerche del genere.codice:InputStream inputStream = null; try { String address = "http://" + host + "/DFChat/server/" + offset + "server.php?r=3&"; for (int i = 0; i < nickList.length; i++) { address += "durate[]=" + ((String) durateList[i]) + "&nick[]=" + ((String) nickList[i]).replace (" ", "_"); if (i + 1 != nickList.length) address += "&"; } URL url = new URL (address); URLConnection connection = url.openConnection(); connection.setDoOutput (true); inputStream = connection.getInputStream(); }

Rispondi quotando