Add support for proxy servers into the curl and fopen methods