The default sample passing in https://sourceForge.net is not spitting out any output.
I can get the book post work fine and it shows me the html for a book but when I try out the ssl sample nothing happens; No error and no output.
I put a break point at the OnSSLContext fuction and it hits there but OnWriteData never gets called.
Any help would be appreciated, heres the code.
Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
Easy easy = new Easy();
Easy.WriteFunction wf = new Easy.WriteFunction(OnWriteData); easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf);
Easy.SSLContextFunction sf = new Easy.SSLContextFunction(OnSSLContext); easy.SetOpt(CURLoption.CURLOPT_SSL_CTX_FUNCTION, sf);
easy.SetOpt(CURLoption.CURLOPT_URL, "https://sourceforge.net/"); easy.SetOpt(CURLoption.CURLOPT_CAINFO, "ca-bundle.crt");
easy.Perform(); easy.Cleanup();
Curl.GlobalCleanup();
easy.SetOpt(CURLoption.CURLOPT_SSL_VERIFYPEER, false); easy.SetOpt(CURLoption.CURLOPT_SSL_VERIFYHOST, false);
are missing
Log in to post a comment.
The default sample passing in https://sourceForge.net is not spitting out any output.
I can get the book post work fine and it shows me the html for a book but when I try out the ssl sample nothing happens; No error and no output.
I put a break point at the OnSSLContext fuction and it hits there but OnWriteData never gets called.
Any help would be appreciated, heres the code.
Curl.GlobalInit((int)CURLinitFlag.CURL_GLOBAL_ALL);
Easy easy = new Easy();
Easy.WriteFunction wf = new Easy.WriteFunction(OnWriteData);
easy.SetOpt(CURLoption.CURLOPT_WRITEFUNCTION, wf);
Easy.SSLContextFunction sf = new Easy.SSLContextFunction(OnSSLContext);
easy.SetOpt(CURLoption.CURLOPT_SSL_CTX_FUNCTION, sf);
easy.SetOpt(CURLoption.CURLOPT_URL, "https://sourceforge.net/");
easy.SetOpt(CURLoption.CURLOPT_CAINFO, "ca-bundle.crt");
easy.Perform();
easy.Cleanup();
Curl.GlobalCleanup();
easy.SetOpt(CURLoption.CURLOPT_SSL_VERIFYPEER, false);
easy.SetOpt(CURLoption.CURLOPT_SSL_VERIFYHOST, false);
are missing