add_filter('wp_get_attachment_url', function($url) { return preg_replace("/^http:/i", "https:", $url); });XML-RPC server accepts POST requests only.