Reading-Notes

My journal for Code Fellows


Project maintained by RogerMReyes Hosted on GitHub Pages — Theme by mattgraham

Read 09

Summary

HTTP requests can be made in Java by utilizing the in built class HttpUrlConnection or HttpClientAPI for the more recent JDK’s. A connection object is created and has an attribute set to it such as GET, POST, or PUT etc. Parameters can then be added by setting doOutput to true and adding a String containing the paramters. Headers can also be set using setRequestProperty(). The response can be parsed and be built into a full response.

Things I want to know more About

I want to learn more about the best way to streamline this process and the key methods needed for implementing the Request Response Cycle

Return to Code 401 Table of Contents