Added fopen support

Added Fopen support, fopen is used if cURL fails.