The Wordpress HTTP API is Awesome

The title says it all. I completely forgot about the Wordpress HTTP API until today, when I was working with HTTP requests in a plugin. I stumbled upon the wp_remote_post function and it immediately replaced my custom HTTP function.

Hidden Gem

One of the hidden gems in the wp_remote_post function is in the optional arguments you can pass along, specifically the "blocking" option. This option allows you to block script execution while it waits for the response or allows the script to continue on. So simple!

Comments can be made via the comment box below or by leaving a comment on an issue over at the blog-comments repo with the title of the issue being the path of the post, e.g. writing/ajax-and-rails.