Everyone uses the HTTP protocol when browsing the web. The protocol allows the browser to connect to a server and then make requests for resources (HTML, graphic files) to be downloaded. HTTP uses sockets for communications, and specifies the format and content of data being transferred. The protocol also allows data to be sent (or "posted") from the client to the server. However, the usefulness of HTTP is not limited to browsers. Applications you write for Windows CE can use HTTP to communicate data, with the following advantages over using sockets:
While it may at first seem strange to propose HTTP for communicating data, it is actually very versatile and convenient. You can use ASP pages with scripting code (written using Microsoft Visual Interdev) to access data directly through ADO (ActiveX Data Objects) or to use middle-tier COM components written using Microsoft Visual C++ or Visual Basic. The data does not have to be returned using HTML you can decide to return the data using a text file format (for example, XML or CSV) or a binary format (Figure 8.1). Figure 8.1. Using HTTP to access enterprise data from Windows CE devices
|