Fixed curl issue with server security options 'open_basedir' or 'safe_mode'

If u have set 'open_basedir' or 'safe_mode=On' in servers php.ini u can use this solution ive found and implemeted into cloudfiles_http.php file.