In this code we are going to show you how easy it is to send a POST request to a server using pure Java, no Apache HTTPClient is needed.