Its fails to post to salesforum,We have checked whole support forum.And tried to make it out .Any of the worked for me..Plz help me..
Array
(
[name] => saleforce
[url] => https://www.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8
[forms] => Array
(
[0] => cf7_231
)
[success] => Suuccessfully posted
[failure] => Failed to post
[timeout] => 60
[mapping] => Array
(
[0] => Array
(
[val] => 1
[lbl] => OID
[src] => 12323
[3rd] => oid
)
[1] => Array
(
[val] => 1
[lbl] => Thank you
[src] =>
[3rd] => retURL
)
[2] => Array
(
[lbl] => fname
[src] => fname
[3rd] => first_name
)
[3] => Array
(
[lbl] => surname
[src] => surname
[3rd] => last_name
)
[4] => Array
(
[lbl] => uemail
[src] => uemail
[3rd] => email
)
[5] => Array
(
[lbl] => company
[src] => company
[3rd] => company
)
[6] => Array
(
[lbl] => country
[src] => country
[3rd] => country_code
)
[7] => Array
(
[lbl] => telephoneno
[src] => telephoneno
[3rd] => phone
)
[8] => Array
(
[lbl] => noofemployees
[src] => noofemployees
[3rd] => employees
)
)
[separator] => ,
)
Post (Form)
Array
(
[_wpcf7] => 231
[_wpcf7_version] => 4.1.1
[_wpcf7_locale] => en_US
[_wpcf7_unit_tag] => wpcf7-f231-o1
[_wpnonce] => 59db859b66
[fname] => Fiona
[surname] => testvipi
[uemail] => [email protected]
[telephoneno] => 123556667
[country] => UK
[company] => Webchoiceuk
[noofemployees] => 55
[_wpcf7_is_ajax_call] => 1
)
Post (to Service)
Array
(
[timeout] => 60
[body] => Array
(
[oid] => 123132
[retURL] =>
[first_name] => Fiona
[last_name] => testvipi
[email] => [email protected]
[company] => Webchoiceuk
[country_code] => UK
[phone] => 123556667
[employees] => 55
)
)
Response
Array
(
[headers] => Array
(
[date] => Thu, 26 Mar 2015 12:23:12 GMT
[set-cookie] => BrowserId=ReEV4Dh4QZ-kF88zZms93w;Path=/;Domain=.salesforce.com;Expires=Mon, 25-May-2015 12:23:12 GMT
[expires] => Thu, 01 Jan 1970 00:00:00 GMT
[cache-control] => private,s-maxage=0
[content-type] => text/html;charset=UTF-8
[content-encoding] => gzip
[connection] => close
)
[body] =>
<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.0 Transitional//EN”>
<html>
<head>
<meta HTTP-EQUIV=”PRAGMA” CONTENT=”NO-CACHE”>
<meta http-equiv=”Refresh” content=”0; URL=https://xxx/thank-you/”>
</head>
<script>if (this.SfdcApp && this.SfdcApp.projectOneNavigator) { SfdcApp.projectOneNavigator.handleRedirect(‘https://xxx/thank-you/’); } else if (window.location.replace){ window.location.replace(‘https://xxx/thank-you/’);} else {;window.location.href =’http:/xxx/thank-you/’;} </script></html>
[response] => Array
(
[code] => 200
[message] => OK
)
[cookies] => Array
(
[0] => WP_Http_Cookie Object
(
[name] => BrowserId
[value] => ReEV4Dh4QZ-kF88zZms93w
[expires] => 1432556592
[path] => /
[domain] => .salesforce.com
)
)
[filename] =>
)