Fix exception format
add download_file function
Fix xmrpc and soap bug