From 39fcb7e3cfe09177a5ddc6a51b3b2614c1618d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Sun, 20 Dec 2015 10:58:36 +0000 Subject: Steam: Fix adding/removing/requesting friends etc. This commit fixes some requests to web api, where was missing some required cookies which resulted in error 400. git-svn-id: http://svn.miranda-ng.org/main/trunk@15911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/api/friend_list.h | 6 +++--- protocols/Steam/src/api/pending.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/api/friend_list.h b/protocols/Steam/src/api/friend_list.h index 06dd886364..d6826ebb60 100644 --- a/protocols/Steam/src/api/friend_list.h +++ b/protocols/Steam/src/api/friend_list.h @@ -23,7 +23,7 @@ public: mir_snprintf(login, "%s||oauth:%s", steamId, token); char cookie[MAX_PATH]; - mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;forceMobile=1", login, sessionId); + mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;mobileClientVersion=1291812;forceMobile=1;mobileClient=ios", login, sessionId); char data[128]; mir_snprintf(data, _countof(data), @@ -47,7 +47,7 @@ public: mir_snprintf(login, "%s||oauth:%s", steamId, token); char cookie[MAX_PATH]; - mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;forceMobile=1", login, sessionId); + mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;mobileClientVersion=1291812;forceMobile=1;mobileClient=ios", login, sessionId); char data[128]; mir_snprintf(data, _countof(data), @@ -71,7 +71,7 @@ public: mir_snprintf(login, "%s||oauth:%s", steamId, token); char cookie[MAX_PATH]; - mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;forceMobile=1", login, sessionId); + mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;mobileClientVersion=1291812;forceMobile=1;mobileClient=ios", login, sessionId); char data[128]; mir_snprintf(data, _countof(data), diff --git a/protocols/Steam/src/api/pending.h b/protocols/Steam/src/api/pending.h index d878d34caa..411bcc2948 100644 --- a/protocols/Steam/src/api/pending.h +++ b/protocols/Steam/src/api/pending.h @@ -11,7 +11,7 @@ public: mir_snprintf(login, "%s||oauth:%s", steamId, token); char cookie[MAX_PATH]; - mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;forceMobile=1", login, sessionId); + mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;mobileClientVersion=1291812;forceMobile=1;mobileClient=ios", login, sessionId); char data[MAX_PATH]; mir_snprintf(data, "sessionID=%s&id=%s&perform=accept&action=approvePending&itype=friend&json=1&xml=0", sessionId, who); @@ -32,7 +32,7 @@ public: mir_snprintf(login, "%s||oauth:%s", steamId, token); char cookie[MAX_PATH]; - mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;forceMobile=1", login, sessionId); + mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;mobileClientVersion=1291812;forceMobile=1;mobileClient=ios", login, sessionId); char data[MAX_PATH]; mir_snprintf(data, "sessionID=%s&id=%s&perform=ignore&action=approvePending&itype=friend&json=1&xml=0", sessionId, who); @@ -53,7 +53,7 @@ public: mir_snprintf(login, "%s||oauth:%s", steamId, token); char cookie[MAX_PATH]; - mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;forceMobile=1", login, sessionId); + mir_snprintf(cookie, "steamLogin=%s;sessionid=%s;mobileClientVersion=1291812;forceMobile=1;mobileClient=ios", login, sessionId); char data[MAX_PATH]; mir_snprintf(data, "sessionID=%s&id=%s&perform=block&action=approvePending&itype=friend&json=1&xml=0", sessionId, who); -- cgit v1.2.3