O'Reilly logo

Java 9 Cookbook by Nick Samoylov, Mohamed Sanaulla

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Making an HTTP POST request

In this recipe, we will look at posting some data to an HTTP service via the request body. We will post the data to a URL: http://httpbin.org/post.

We will skip the package prefix for the classes, as it is assumed to be jdk.incubator.http.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required