I recently came across this genius bit of code on HTTP POST from PHP, without cURL and am wondering if POSTing with cURL or the fopen() provided by PHP.
If one is faster, why? If they are both slow, how can I speed them up?
If I’m invoking the POST page with another POST, instead of loading the page, will it load faster because there is no browser processing?
I recently came across this genius bit of code on HTTP POST from PHP,
Share
cURL operates much faster as it lacks the occasional requirement of HTTP request setup.
In addition, it’s suggested that you not use
fopen()for this functionality (many people disableallow_url_fopenin their php.ini file) for security reasons.Enjoy and good luck!