switching from file_get_contents to wp_remote_get

Done in order to avoid conflicts on some servers when encountering
https.