Call Concrete5 form from outside browser (java, wget, c/c++/C#, etc.)
Permalink
Hi-
Is it possible to use a programing language in a non-browser application to issue the HTTP POST request for a Concrete5 form?
Why I'm asking: Our company sells a software package (not Concrete5 related) that requires the purchaser to request a license. Right now, that's done through a Concrete5 form. We have a staff member who receives the form submissions, enters the data in our support database, generates the license, and replies to the customer via email. Unfortunately, this process requires the customer to exit the package installer twice (once to request the license, and again to copy-n-paste the license from his email). I'd like to cut that down to once by submitting the license request directly from the package installer.
Technical Detail:
Here's the FORM tag from the Concrete5 web page containing the license request form:
<form enctype="multipart/form-data" id="miniSurveyView212" class="miniSurveyView" method="post" action="/index.php?cID=171&bID=212&arHandle=Main&ccm_token=1389288237:190aeae581b2be951c2c4eb7fe9ced0e&btask=passthru&method=submit_form#1363360721">
The form contains a series of INPUT tags, two of which are of type "hidden," one containing a URI and the other named something like "qID."
Are there any "gotchas" involved here? I'm specifically wondering if there is any sessionalizing that I'd break by simply issuing a HTTP POST request to "http://mysitesname/index.php?" (plus the rest of the URL in the "action" attribute of the FORM tag). And would I have to worry if I changed the form (i.e. would its "action" attribute change, requiring me to change the package installer?)
Is it possible to use a programing language in a non-browser application to issue the HTTP POST request for a Concrete5 form?
Why I'm asking: Our company sells a software package (not Concrete5 related) that requires the purchaser to request a license. Right now, that's done through a Concrete5 form. We have a staff member who receives the form submissions, enters the data in our support database, generates the license, and replies to the customer via email. Unfortunately, this process requires the customer to exit the package installer twice (once to request the license, and again to copy-n-paste the license from his email). I'd like to cut that down to once by submitting the license request directly from the package installer.
Technical Detail:
Here's the FORM tag from the Concrete5 web page containing the license request form:
<form enctype="multipart/form-data" id="miniSurveyView212" class="miniSurveyView" method="post" action="/index.php?cID=171&bID=212&arHandle=Main&ccm_token=1389288237:190aeae581b2be951c2c4eb7fe9ced0e&btask=passthru&method=submit_form#1363360721">
The form contains a series of INPUT tags, two of which are of type "hidden," one containing a URI and the other named something like "qID."
Are there any "gotchas" involved here? I'm specifically wondering if there is any sessionalizing that I'd break by simply issuing a HTTP POST request to "http://mysitesname/index.php?" (plus the rest of the URL in the "action" attribute of the FORM tag). And would I have to worry if I changed the form (i.e. would its "action" attribute change, requiring me to change the package installer?)