Use wp_remote_get_url() instead of native PHP cURL #1