I need to capture data locally as well as submit that data to Salesforce. I am trying to
POST data to https://[example].secure.force.com/HC4__WebFormProcessor , however I am getting a response of
The web-to-lead forms are standard HTML 5 forms with no authorization. If I place the
<form action="https://[example].secure.force.com/HC4__WebFormProcessor" method="post"> <!-- Form Fields Here --></form> and open the file locally it submits without problem as there is no authentication going on. No OAuth, no tokens, no secrets, it's just a simple
POST to the API and works fine as HTML, but not when mocked in Postman. I've also tried doing a
POST using C#'s WebClient but am getting the same error.
I've tried with the Content-Type set to
x-www-form-urlencoded (the expected type) as well as
form-data (just in case).
This is something I've done almost a hundred times for various API endpoints, including other web-to-lead Salesforce endpoints for other clients! I've been unable to find any information from Salesforce on why this is an issue. I've contacted Salesforce help to no avail.
I'd like to also preface this with I am not familiar with Salesforce and my only interactions with them are spinning up WebClients to
POST data to their API endpoints, so if using terminology specific to Salesforce please try to be a bit more general or explain in their Dashboard where I might find the information. I'm not even sure this is 100% web-to-lead but it is what I've heard it being called by the support rep.