0
我在站點中使用libcurl驗證驗證碼。我做了很多功能,例如:libcurl http驗證碼
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