且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

什么是curl_easy_setopt的默认路径(curl,CURLOPT_CAINFO,“cacert.pem”);

更新时间:2022-06-10 05:15:15

OK,看起来像使用相对路径工作BUT ....当你在调试器下运行它不是你的$(solutiondir)/ Debug文件夹!所以它应该在你的EXE的同一个文件夹上,当你运行它,但是当你调试,你需要把它也在另一个目录(我已经把它放在解决方案和项目dir,它工作)

OK, It looks like using a relative path works BUT.... When you run it under debugger it is not your $(solutiondir)/Debug folder ! so it should be on the same folder of your EXE when you run it, but when you debug, you need to put it also on another directory (I've put it on solution and project dir and it worked)