Delivering Data to Applications

After you gather data from the user and store it in a variable using one of the input fields that I've described in this chapter, you must return it to your application. There are two principal methods for sending data back to a WAP application from a deck: a query string embedded in a URL and HTTP POST data.

This section will cover both methods of data communication from the browser to your applica tion. You should note that all of the underlying communication is HTTP and restricted to the bounds of that connectionless protocol.

URL Construction

According to the HTTP 1.1 specification in RFC2068, the query string from a URL can be used to supply data to the server and backing application. The query string ...

Get WAP Development with WML and WMLScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.