Using libcurl on windows, in my c++ project, with visual studio, does not work because string get corrupted
问题 As explained in the title, I am trying to use the libcurl C API to submit simple http query. I am using windows as an OS, C++ as a language, Visual Studio 2008 as an IDE. My code is quiet simple: I initialize curl: CURLcode init = curl_global_init(CURL_GLOBAL_ALL); I initialize my handle: CURL* handle = curl_easy_init(); I set the url: CRULcode set_url = curl_easy_setopt(handle, CURLOPT_URL, "http://www.example.com") I submit my request: CURLcode submit = curl_easy_perform(handle); As a