WordPress HTTP API - Yoast

/#utm_source=feedburner

  • WordPress HTTP API
    http://yoast.com/wp-best-practice/wordpress-http-api/#utm_source=feedburner: joostdevalk (Yoast.com)

    Some WordPress installs may have CURL installed for instance, others may not. On some installs you’re allowed to do file_get_contents to external URLs, on some installs you’re not. If you need to either GET or POST something from or to other sites outside of your WordPress site and you’re relying on these features to work, your plugin might not work for a lot of users, that’s where the WordPress HTTP API comes in.

    The WordPress HTTP API makes fetching from or posting to remote servers a breeze, by allowing you to be transport agnostic when you fetch something. The HTTP API will choose the fastest and most reliable method out of the five different transports available in PHP that are allowed on that server at that time.

    #Web #WordPress #données_nomades #curl #http