<?php $c = curl_init(); curl_setopt($c, CURLOPT_URL, 'http://leads.leadexec.net/processor/insert/general'); curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_POSTFIELDS, 'FirstName=John&LastName=Doe&Email=noemail@leads.com'); curl_exec ($c); curl_close ($c); ?>In the example above, the example POST string is first generated and then is added to the CURLOPT_POSTFIELDS variable, curl_exec is then ran to send the information to the POST URL. The response is then received and would then be processed to determined the desired action depending on the sending page's requirements and method sent to.
Copyright ©2024 ClickPoint Software