//============================================================================== CURLEasySession::CURLEasySession() : handle (CURLManager::getInstance()->createEasyCurlHandle()), remotePath (String::empty), progress (1.0f) { enableFullDebugging (true); curl_easy_setopt (handle, CURLOPT_NOPROGRESS, false); }
CURLEasySession::CURLEasySession(String localPath, String remotePath, bool upload, String username, String password) { handle = CURLManager::getInstance()->createEasyCurlHandle(); enableFullDebugging (true); curl_easy_setopt (handle, CURLOPT_NOPROGRESS, false); setLocalFile (File (localPath)); setRemotePath (remotePath); setUserNameAndPassword (username, password); beginTransfer (upload); }