From the course: JSON Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Create an HTTP request

Create an HTTP request

- [Instructor] To get JSON data from a remote source on the web starts with an HTTP request. We're going to work with the h+ sport website, which is a site for a fictitious company that we're using just for this course, the h+ website displays a number of products that the company sells with a name, image, and price for each one. All of this product data on the page is a result of an HTTP request for product data and an HTTP response that contains that product data. To make a request for data, I need to send an HTTP request to a specific web address called an end point. An end point has a program running that receives HTTP requests and generates HTTP responses back. For example, these are the URIs of two end points for the fictitious h+ sport company. These may look like web page URLs, but instead of returning an HTML document to be displayed in your browser, they return JSON data. Now building an HTTP request in a…

Contents