HTTP Requests in Java: Sending Simple HTTP Requests

Java JDK 8+
  • 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 course
    set up a Maven project to build the HTTP client application
    use the HttpURLConnection to configure and send an HTTP GET request
    recognize various fields available in the response returned for an HTTP GET request
    transform the body of an HTTP response containing JSON data into a formatted JSON string
    include 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 body
    send HTTP PUT and DELETE requests to modify or delete a resource at the server
    describe the role of a HEAD request to obtain information about a resource
    set an upper limit on the amount of time you can wait for an HTTP request
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 31s
    UP NEXT
  • Playable
    2. 
    Creating an HTTP Client Project with Maven
    9m 57s
  • Locked
    3. 
    Sending a Simple GET Request
    10m 16s
  • Locked
    4. 
    Exploring the Response to a GET Request
    4m 53s
  • Locked
    5. 
    Processing JSON Data in a Response
    12m 11s
  • Locked
    6. 
    Sending Parameters in an HTTP Request
    4m 34s
  • Locked
    7. 
    HttpURLConnection and POST Requests
    10m 11s
  • Locked
    8. 
    PUT and DELETE Requests
    9m 21s
  • Locked
    9. 
    The HEAD Request
    7m 3s
  • Locked
    10. 
    Setting Timeouts with HttpURLConnection
    5m 23s
  • Locked
    11. 
    Course Summary
    2m 17s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.