libcurl发送post请求,包括httpheader参数 static size_t getCharCode(void *ptr, size_t size, size_t nmemb, void *userdata) { string *version = (string*)userdata; version->append((char*)ptr, size * nmemb); return (size * nmemb); } void sendpost() { string result…