diff options
author | aunsane <aunsane@gmail.com> | 2018-01-14 22:02:44 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2018-01-14 22:03:16 +0300 |
commit | 7cb1539b0dbcf585472dd2341129adf174bb0bb5 (patch) | |
tree | 6879adfdd3ebf5f64557525df118e0753969fd95 /protocols/Steam/src/api/session.h | |
parent | a6b0d0df4854ffda2577e2b61844467253eb9e0f (diff) |
Steam: refactoring pt.2
Diffstat (limited to 'protocols/Steam/src/api/session.h')
-rw-r--r-- | protocols/Steam/src/api/session.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/protocols/Steam/src/api/session.h b/protocols/Steam/src/api/session.h index d4e91721cb..dec2e0aa0a 100644 --- a/protocols/Steam/src/api/session.h +++ b/protocols/Steam/src/api/session.h @@ -26,10 +26,15 @@ public: class GetSessionRequest2 : public HttpRequest
{
public:
- GetSessionRequest2() :
- HttpRequest(HttpGet, STEAM_WEB_URL)
+ GetSessionRequest2(const char *token, const char *steamId) :
+ HttpRequest(HttpGet, STEAM_WEB_URL "/mobilesettings/GetManifest/v0001")
{
- flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_NODUMP;
+ flags = NLHRF_HTTP11 | NLHRF_SSL | NLHRF_NODUMPHEADERS;
+
+ char cookie[MAX_PATH];
+ mir_snprintf(cookie, "steamLogin=%s||oauth:%s", steamId, token);
+
+ Headers << CHAR_PARAM("Cookie", cookie);
}
};
|