martes, 24 de marzo de 2020

Dispo call URL

Dispo Call URL 
VARhttp://66.42.96.183/salesforce/post.php?first_name=--A--first_name--B--&last_name=--A--last_name--B--&email=--A--email--B--&company=asterisk&state=--A--state--B--&phone=--A--phone_number--B--&street=--A--address1--B--&oid=00D6g000008Nog6&sale_status=SALE&log_to_file=1

This works on SALE status




PHP

<?php
print_r($_GET);
echo shell_exec("curl -d \"first_name=$_GET[first_name]&last_name=$_GET[last_name]&email=$_GET[email]&company=$_GET[company]&city=$_GET[city]&state=$_GET[state]&phone=$_GET[phone]&street=$_GET[street]&oid=$_GET[oid]\" \"https://webto.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8\" ");
foreach($_GET as $key=>$value) {
echo system("echo '$value' > /srv/www/htdocs/salesforce/post.log ");
}
?> /srv/www/htdocs/salesforce/post.php