drop cadaver and now use curl. downloadFile is implemented
upload using curl is also implemented