Open-Source PHP Framework - Designed for rapid development of performance-oriented scalable applications

Post component

API >> mvc >> components >> post
The postRequest method of this component executes a POST request to a URL but simplifies access and does not rely on curl or any other PHP extension.
All you need is to supply arguments for the URL (where to post to) and the data to send via POST. The third argument, headers, is optional and defaults to the typical form-urlencoded:
postRequest($url$data$header 'Content-Type: application/x-www-form-urlencoded')
Eg.:
$response get::component('post')->postRequest('http://webservice.SomeSite.com'$data);