O'Reilly logo

Definitive VoiceXML™ by David Cuddihy, Adam Hocek

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required