HTTP Requests in Java: Sending Simple HTTP Requests

Java    |    Beginner
  • 11 videos | 1h 18m 36s
  • Includes Assessment
  • Earns a Badge
Rating 4.2 of 17 users Rating 4.2 of 17 users (17)
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

  • 2m 31s
  • 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 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

Rating 3.8 of 5 users Rating 3.8 of 5 users (5)
Rating 4.5 of 34 users Rating 4.5 of 34 users (34)
Rating 4.4 of 146 users Rating 4.4 of 146 users (146)