blob: 3e13a2e4184f2876589e6a836b67cd6637f906bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#ifndef _STEAM_REQUEST_SESSION_H_
#define _STEAM_REQUEST_SESSION_H_
class GetSessionRequest : public HttpRequest
{
public:
GetSessionRequest(const char *token, const char *steamId, const char *cookie) :
HttpRequest(REQUEST_POST, STEAM_WEB_URL "/mobileloginsucceeded")
{
flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_NODUMP;
char data[512];
mir_snprintf(data, SIZEOF(data),
"oauth_token=%s&steamid=%s&webcookie=%s",
token,
steamId,
cookie);
SetData(data, strlen(data));
AddHeader("Content-Type", "application/x-www-form-urlencoded");
}
};
#endif //_STEAM_REQUEST_SESSION_H_
|