This chapter introduced you to several Ajax techniques for client-server communication. It began with an HTTP primer, exploring HTTP requests and responses. You learned about the format of HTTP messages and the differences between a GET request and a POST request. The concepts of headers and message bodies were introduced.
The chapter also introduced the use of XMLHttp for client-server communication. You learned that Internet Explorer, Mozilla Firefox, Safari, and Opera all support some form of XMLHttp object, and some extra coding is necessary to detect these differences. The differences between asynchronous and synchronous requests were explained, and you learned how to make GET and POST requests using XMLHttp. You also learned how to use request and response headers along with HTTP status codes to better handle requests.
Lastly, considerations when initiating client-server communication were discussed. You learned about the same origin policy and how it affects the ability to communicate with other servers. The various security restrictions were discussed along with a brief introduction to server-side proxies. You also learned about the importance of cache control when creating Ajax functionality.