0
私はサイトでauthにlibcurlを使用しています。私は多くの機能でそれを作ります:libcurl http auth on
char *CheckLoginPass(char *login, char *pass)
{
//use curl_easy_setopt for check login/pass
return stdout;
}
char *AuthOnSite() //make auth on site
{
//use curl_easy_setopt for auth by login/pass
return htmlpage;
}
char *TestMyAuth()
{
//use curl_easy_setopt for test auth
return htmlpage;
}
void Test()
{
char *stdout = CheckLoginPass("login", "pass"); // is good
char *htmlpage = AuthOnSite(); // is good
htmlpage = TestMyAuth(); // session is lose and I am not logined on site
}
私はセッションを中断するのを避けるために何をしますか?
はありがとうございました) – Andreyddk