1
That’s my client 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 the one on 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’t talk... can someone give me a light? I’m a beginner!
That was me, thank you. I put and it worked
– user115863