public void enviarCadena(String s){
s="http://192.168.1.7:36000/"+s;
try {
url = new URL(s);
conexion = url.openConnection();
} catch (MalformedURLException e) {
e.printStackTrace();
}catch (IOException e){
}
}
I wrote this code. If I go to the URL in the browser, the browser sends the data to the server, but not when I execute my method in Java. The program does not throw an exception, all goes fine, but the server does not receive anything. Why?