Improved compatibility // Fixed some bugs for fopen/curl usage (from now on using WordPress' wp_remote_fopen function)