Summary
HTTP GET and POST request methods are two of the most popular HTTP methods that are used to transfer data from clients to servers. This chapter provides an in-depth understanding of how the GET and POST request methods are used to transfer data using asynchronous requests. We then proceeded to look at cross-origin resource issues and how can we resolve them. Next, we studied the JSONP implementation on the client-side as well as on the server-side.
Concerning cross-domain asynchronous requests, we used the exception of the <script> tag to perform our JSONP asynchronous script calls to fetch the data from a different domain. In the next chapter, we will be learning about debugging JSON using various client-side tools.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access