HTTP Requests in Java: Sending Simple HTTP Requests
Java JDK 8+ | Beginner
- 11 videos | 1h 18m 36s
- Includes Assessment
- Earns a Badge
The HttpURLConnection is the oldest implementation of an HTTP client in Java and is still widely used today due to its simplicity and the fact that it is very lightweight. Use this course to familiarize yourself with different forms of HTTP requests. Try your hand at constructing a basic GET request to retrieve data, submitting it to a remote server, and processing the response that is returned. You'll also examine the use of a POST request to submit data to create a resource at a server, a PUT request to update a resource, and a DELETE request to remove it. You'll also look into setting a timeout for requests that take too long to process. After finishing this course, you'll be able to identify various HTTP requests and how these can be formulated and communicated in a Java app using the HttpURLConnection class.
WHAT YOU WILL LEARN
discover the key concepts covered in this courseset up a Maven project to build the HTTP client applicationuse the HttpURLConnection to configure and send an HTTP GET requestrecognize various fields available in the response returned for an HTTP GET requesttransform the body of an HTTP response containing JSON data into a formatted JSON stringinclude query parameters when submitting an HTTP GET request by adding them to the URL
set up and send an HTTP POST request along with JSON data in the request bodysend HTTP PUT and DELETE requests to modify or delete a resource at the serverdescribe the role of a HEAD request to obtain information about a resourceset an upper limit on the amount of time you can wait for an HTTP requestsummarize the key concepts covered in this course
IN THIS COURSE
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.Digital badges are yours to keep, forever.
YOU MIGHT ALSO LIKE
PEOPLE WHO VIEWED THIS ALSO VIEWED THESE