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 - JavaScript Tutorial
From the course: JSON Essential Training
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
How to send and receive JSON data3m 25s
-
(Locked)
Create an HTTP request2m 37s
-
(Locked)
Work with an HTTP response2m 28s
-
(Locked)
Convert between JSON and other data formats4m 43s
-
(Locked)
Make sense of JSON-P1m 52s
-
(Locked)
Challenge: Examine JSON data used by websites1m 4s
-
(Locked)
Solution: Examine JSON data used by websites3m 44s
-
(Locked)
-
-
-
-