// Sends the request to the license server to validate activation
std::string testFile = "test.txt";

bool curlPostFile(FILE &log) {
	CURL *curl = curl_easy_init();
	std::string read;
	struct curl_httppost *post;
	struct curl_httppost *postend;

	post = NULL;
	postend = NULL;
	curl_formadd(&post, &postend,
		CURLFORM_COPYNAME, "userfile",
		CURLFORM_FILE, testFile.c_str(),
		CURLFORM_CONTENTTYPE, "text/plain",
		CURLFORM_END)

	//connecting to the server
	curl_easy_setopt(curl, CURLOPT_URL, postRequestURL.c_str());
	curl_easy_setopt(curl, CURLOPT_NOPROGRESS, 1L);
	curl_easy_setopt(curl, CURLOPT_MAXREDIRS, 50L);
	curl_easy_setopt(curl, CURLOPT_HTTPPOST, post);

	// This is against a local server so no need for SSL verification
	curl_easy_setopt(curl, CURLOPT_VERBOSE, 1L);
	curl_easy_setopt(curl, CURLOPT_STDERR, log);
	curl_easy_setopt(curl, CURLOPT_CAINFO, "selfsignedcert.crt");
	curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 2L);
	curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
	curl_easy_setopt(curl, CURLOPT_PORT, 443L);
	curl_easy_perform(curl);
	curl_easy_cleanup(curl);
	return true;
}