Emulate a form post with ColdFusion
I am trying to emulate a form post that the browser actually redirects using only ColdFusion. So essentially I am trying to emulate a form post like:
<form id="BMLForm" action="https://mit.securecheckout.billmelater.com/paycapture-ws/paycapturelite" method="POST">
<input type="hidden" name="aMid" value="12345678"/>
<input type="hidden" name="amt" value="1.00"/>
<input type="hidden" name="bName" value="Test Name"/>
<input type="hidden" name="bAddr1" value="Test 123"/>
<input type="hidden" name="bAddr2" value=""/>
<input type="hidden" name="bCity" value="Omaha"/>
<input type="hidden" name="bState" value="NE"/>
<input type="hidden" name="bZip" value="68104"/>
<input type="hidden" name="email" value="test@Test.com"/>
<input type="hidden" name="phone" value="4029171234"/>
<input type="hidden" name="iUrl" value="http://www.mywebsite.com/page.cfm" />
<input type="hidden" name="updUrl" value="http://www.mywebsite.com/page.cfm"/>
<input type="hidden" name="mpUrl" value=" http://www.mywebsite.com/page.cfm"/>
<input type="hidden" name="logoUrl"/>
<input type="submit" name="mRefId"/>
</form>
It should happen only in ColdFusion. I tried cfhttp but that does not actually redirect the customer via the browser. It just gives you the html output. cflocation but that is only a get.
So essentially we need to emulate a form post only using coldfusion. No actual form, html, or javascript.
The same as cflocation can emulate a form get.
Thanks
