Quantcast
Channel: wp_remote_get vs. file_get_contents vs. cURL? - WordPress Development Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by Otto for wp_remote_get vs. file_get_contents vs. cURL?

Always use wp_remote_get when in a WordPress context. It figures out the correct way, be it curl or something else, and uses that. Simple.

View Article


wp_remote_get vs. file_get_contents vs. cURL?

I need to fetch the contents of a remote file. Which is better for performance - wp_remote_get, file_get_contents, or cURL?How exactly does wp_remote_get work? Can you suppress errors, ex....

View Article

Browsing latest articles
Browse All 2 View Live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>