GET requests have to use query strings in the URL.
POST requests have to use form style text in the body of the request.
Assuming that you are talking about a request executed on the server side, and that the service you need to talk to supports POST, look into the HttpURLConnection and related classes in the java.net package of the standard
Java library. There are plenty of tutorials and articles around on this sort of thing.
Bill