B.2. GET versus POST

The VoiceXML element types submit and subdialog both provide a method attribute allowing the VoiceXML developer to choose whether to use HTTP GET or HTTP POST to push data from the VoiceXML interpreter up to the server. This section will briefly examine the differences between these two methods.

The HTTP GET method is typically used to get information from the server. Dynamic Web applications, however, often require that the client pass parameters up to the server when requesting a page. The HTTP GET method was extended to allow these parameters to be appended to the end of the URL, for example:

http://www.example.com/doc.vxml?firstName=JohnlastName=Smithage=75

A question mark (?) after the resource name introduces a list ...

Get Definitive VoiceXML™ 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.