Muestra las diferencias entre dos versiones de la página.

Enlace a la vista de comparación

es:relaywebform [2013/02/09 23:43] (actual)
Línea 1: Línea 1:
 +{{ :vtspain_logo.gif|vtigerCRM-Spain}}
 +====== vtigerCRM-Spain::Relaying a Webform ======
 +[[https://forums.vtiger.com/viewtopic.php?f=139&t=55484|Relaying a Webform]]
 +**postby jtrombley80 » Thu Nov 01, 2012 10:37 pm**   **THANK YOU**\\
 +Ran into a situation recently where I needed a Webform sitting out on the internet to hit a server in a DMZ and then be relayed from that server to a vtiger server behind a firewall. The DMZ server was the only one allowed to talk to the vtiger instance and it wasn't the server hosting the webform. Here's what I did in case anyone has a similar need:
 +Set the form post on the internet webform to go to "themiddlemanserver/relay.php"
 +Enabled cURL in PHP on the DMZ server. Contents of relay.php are:
 +    $postParams = file_get_contents("php://input");
 +    $ch = curl_init('http://vtigerbehindfirewall/modules/Webforms/capture.php');
 +    curl_setopt ($ch, CURLOPT_POST, 1);
 +    curl_setopt ($ch, CURLOPT_POSTFIELDS, $postParams);
 +    curl_exec ($ch);
 +    curl_close ($ch);
 +    ?>
 +Webform hits the DMZ relay and is sent on to the vtiger instance behind the firewall. Passes all values correctly.