Select Page

If you are like me, you may be curious what fields Infusionsoft’s http post will send to your web handler. Well, there is no better way than to set up a test.

First, we need to create a script that will handle the request. In this example, I have used C# and a simple .aspx page.

The page does nothing more than loop through the Request.Form collection.

[sourcecode language=”csharp”]
protected void Page_Load(object sender, EventArgs e)
foreach(string key in Request.Form.AllKeys)
Response.Write (key + "=" + Request.Form[key] + "<br />");

Or, in PHP, echo each of the elements of the _POST array.

[sourcecode language=”php”]
foreach ($_POST as $k => $v) {
echo "$k = $v<br />";

It is important to note that the HTML output should not include any carriage returns or line feeds, since the “View Action Results” page will only show the first line or the HTML output.

Once the test page is on the web server, it is as easy as triggering the http post action for a contact that has the data we would like to view. This can be done by simply choosing the “Apply Actions” option from the “Select an action” dropdown.

We then see a new browser window pop up that will allow us to choose any of the Action Set actions that you would like to execute. Since we desire to view the sample output from an http post, we should choose the Send an http post to another server action.

Enter the URL of the test page that the Send an http post to another server will call, and we will see the results of the http post on the “View Action Results” page.

No we have the sample output, and we have a good idea of what to expect when the Infusionsoft Send an http post to another server action is called.

[sourcecode language=”html”]
Phone3Type=Work<br />
LastName=Fife<br />
LastUpdatedBy=4<br />
Phone4Type=Work<br />
DateCreated=2010-12-08 14:12:22.0<br /><br />
Id=6<br />
OwnerID=4<br />
Phone2Type=Work<br />
Groups=102<br />
FirstName=Barney<br />
Phone5Type=Work<br />
Company=Mayberry PD<br />
CompanyID=0<br />
LastUpdated=2010-12-08 14:13:39.0<br />
CreatedBy=4<br />
Phone1Type=Work<br />
JobTitle=Deputy<br />