I know there is in Drupal a "protection that prevents any remote POST requests from other sites for security" (see http://drupal.org/node/1018340#comment-3915918).
But I have a user connected to Drupal, from a web app, and his connection is certified by a session id: can I do, within the session scope, a remote sublission of a webform?
Thanks in advance!
Comments
Comment #1
quicksketchIf you're connecting via a web app, I'd suggest looking into http://drupal.org/project/webform_service.
Webform itself doesn't provide a mechanism for remote submission of forms, though you can submit any form in Drupal with the drupal_execute() function, including webforms. Taking that route will require the coding of a custom module to make that function available through some kind of menu callback, which would presumably validate the user's submission before submitting the form.
Comment #2
gianfrasoft commentedI'm already using the services. I would prefer a direct approach with webform functionality...
Comment #3
enrique.delgado commentedI'm not sure if this is what you are trying to achieve, but take a look at http://drupal.org/project/webform_remote_post
Comment #4
gianfrasoft commentedCongratulations, @enrique.delgado, your webform_remote_post seems to be a very interesting project. Sorry, I'll test it in future 'cause I solved my original issue creating a php page with Drupal bootstrap...
But yours is a great solution. I can fix this issue!
Bye!
Comment #6
molenick commentedI think that webform_remote_post does the opposite of what is requested - it takes local input of a webform and sends it to other systems.
I've started building a module to allow for remote posting to D7 webforms, it's available in my sandbox at:
https://drupal.org/sandbox/molenick/1956784
Please take a look and give some feedback.
I'm in the process of applying for project access, if you have time please feel free to review my application and give feedback:
https://drupal.org/node/1996830