This article has focused on two methods of accessing web pages that is HTTP and HTTPS in j2me. Main Class HttpConnection provides three methods for transfer of data to the server,GET,POST and HEAD.A Brief Explanation on each method is explained so well with example URLs. Instruction on how to create connection object and how to pass URL to its given with example.
Two methods for reading and writing data to the server is inputDataStream() and OutputDataStream() discussed. Great source of information is given. Useful for any one who want their application to communicate with server and get response. Details explanation is easy to understand and implement.
--Kalki 10:51, 26 September 2009 (UTC)
Review:
This article discusses how to read and write data using Hypertext Transfer Protocol (HTTP) and HTTPS (HTTP secure) in Java ME. The article begins with a discussion of the fundamental properties of HTTP and the three methods it provides for reading and writing data, namely GET, POST and HEAD. The article also explains how HTTPS addresses the security limitations of HTTP through the use of Secure Socket Layer (SSL) or Transport Layer Security (TLS). The article then shows how to read and write data via an HTTP connection (as well as with HTTPS – it’s almost identical). The article ends with a complete code example, demonstrating reading and writing via HTTP GET and POST methods.
The article is professionally written. Rather than just providing code, the author first explains the concepts well, ensuring that the reader has a good understanding of how HTTP works before demonstrating the use of HTTP connections. Usefully, the code example is packed with comments, making it pretty easy to follow. The code example is also well-written, demonstrating correct use of exception handling. The code also shows how to read chunks of data at a time - a useful technique if the length of the data being read cannot be determined. The article covers the topic well, providing both a useful explanation of the concepts and a useful and complete code example.
--Larry101 16:24, 28 September 2009 (UTC)