This is my client's code:
public static void main(String[] args) throws IOException, InterruptedException {
SendData sender = new SendData();
String JsonDeDados;
String infos = "informacoes";
HttpClient client = HttpClientBuilder.create().build();
CloseableHttpClient clientclose = HttpClients.createDefault();
HttpPost post = new HttpPost("localhost");
And this one from my server:
public static void main(String[] args) throws IOException {
HttpServer server = HttpServer.create(new InetSocketAddress(5030), 0);
System.out.println("Executando");
server.createContext("/data", new dataHandler());
server.setExecutor(null);
server.start();
They can not talk ... can someone give me a light? I'm a beginner!