-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCookieData.h
41 lines (35 loc) · 900 Bytes
/
CookieData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#include <string>
#include <vector>
#include "soapH.h"
#ifndef COOKIEDATA_H
#define COOKIEDATA_H
#include "CatiwebAuth.h"
#include "Config.h"
class CookieData
{
public:
CookieData(Config * config);
bool parseData(const char * data);
std::vector<std::string> split_string(const char * c_data, const char * c_delimiter="\t");
void set_curl_cookie_to_gsoap_cookie(
struct soap *soap,
PCURL_SLIST cookies_data
);
bool set_gsoap_cookie_to_curl_cookie(
struct soap *soap,
CURL *curl,
const char * name="auth_tkt"
);
public:
// 3.5 What are all those entries in my cookies.txt file?
// http://www.cookiecentral.com/faq/#3.5
std::string domain;
bool flag;
std::string path;
bool secure;
unsigned long expiration;
std::string name;
std::string value;
Config * m_pconfig;
};
#endif