test for upload and download file use libcurl