W3C home > Mailing lists > Public > www-voice@w3.org > July to September 2002

Re: using get or post method in submit element

From: Robert S. Willner <rwillner@telcordia.com>
Date: Thu, 15 Aug 2002 14:01:54 -0400
To: "Dave Burke" <david.burke@voxpilot.com>
Cc: "Robert S. Willner" <rwillner@telcordia.com>, www-voice@w3.org
Message-ID: <OF61D9B9CD.6AF01D3B-ON85256C16.00611034@cc.telcordia.com>


Thanks for your reply, the information provided was helpful. Just one
follow-up if I may.

I assume the following can occur when using GET for the method parameter in
the submit element:

1) the server process that receives the get command processes the submitted
2) the server process then sends to the VXML media server a VXML document
for processing next (the document is sent in HTTP get response)
3) the VXML interpreter would transition to the received document and
interprets the document.

Is that correct?

Could the same sequence be supported using the POST method, i.e return a
VXML document in the POST response that was then interpreted by the VXML

Thanks again,

Robert Willner

                    "Dave Burke"                                                                                      
                    <david.burke@vox        To:     www-voice@w3.org, "Robert S. Willner" <rwillner@telcordia.com>    
                    pilot.com>              cc:     (bcc: Robert S. Willner/Telcordia)                                
                                            Subject:     Re: using get or post method in submit element               
                    08/14/02 07:00                                                                                    

Hi Robert,

The GET and POST methods are contained within the HTTP 1.1 specification
(RFC2616). The VoiceXML 2.0 spec. in turn references the HTTP spec. and
the two methods supported by <submit> are not vendor specific but standard.

GET vs POST depends on what the application developer wants to do. GET
data (submit's namelist) as part of the URL. POST on the other hand sends
as part of the body. Generally, POST is better for sending large amounts of
data and also for sending user specific data (using GET usually results in
log entry in web servers for the requested URL and thus includes the data
sent). GET might be simpler for some server side scripts (it is easier to
debug at least) and also might be useful if the requested resource needs to
be cached. Finally, there are two common encodings that POST uses and both
of these must be supported by VoiceXML 2.0 conforming interpreters. These
are 'application/x-www-form-urlencoded' and 'multipart/form-data'. The
former is typically used to send variables (as strings) and the later used
to send binary data (such as a recording via the <record> tag).

Hope this helps,


----- Original Message -----
From: "Robert S. Willner" <rwillner@telcordia.com>
To: <www-voice@w3.org>
Sent: Wednesday, August 14, 2002 11:37 PM
Subject: using get or post method in submit element

> Please provide information on the use of get versus post with the submit
> element.
> What are the implications of using the get method versus the post method
> the submit element? Is this a vendor-specific implementation issue or is
> there an expected behavior for each method?
> Thanks,
> Robert Willner
> Telcordia Technologies
Received on Thursday, 15 August 2002 14:12:29 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:07:36 UTC