summaryrefslogtreecommitdiff
path: root/protocols/SkypeWeb/src/requests/oauth.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-05-28 15:14:10 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-05-28 15:14:10 +0300
commit373e78401f7ab116bc0c1787da125d5e46c901d5 (patch)
tree06b4ac8092c42ea5f3d039fe641fe43a895fb5c7 /protocols/SkypeWeb/src/requests/oauth.h
parent3f8d2fd0b0022c11e30ab47046013b0c58030d47 (diff)
SkypeWeb: further shit cleaning
Diffstat (limited to 'protocols/SkypeWeb/src/requests/oauth.h')
-rw-r--r--protocols/SkypeWeb/src/requests/oauth.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/protocols/SkypeWeb/src/requests/oauth.h b/protocols/SkypeWeb/src/requests/oauth.h
index 3f23ea50e3..f5bf8afd1b 100644
--- a/protocols/SkypeWeb/src/requests/oauth.h
+++ b/protocols/SkypeWeb/src/requests/oauth.h
@@ -21,7 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
struct OAuthRequest : public AsyncHttpRequest
{
OAuthRequest() :
- AsyncHttpRequest(REQUEST_GET, "login.live.com/login.srf", &CSkypeProto::OnOAuthStart)
+ AsyncHttpRequest(REQUEST_GET, HOST_OTHER, "https://login.live.com/login.srf", &CSkypeProto::OnOAuthStart)
{
flags |= NLHRF_REDIRECT;
@@ -31,7 +31,7 @@ struct OAuthRequest : public AsyncHttpRequest
}
OAuthRequest(const char *login, const char *password, const char *cookies, const char *ppft) :
- AsyncHttpRequest(REQUEST_POST, "login.live.com/ppsecure/post.srf", &CSkypeProto::OnOAuthAuthorize)
+ AsyncHttpRequest(REQUEST_POST, HOST_OTHER, "https://login.live.com/ppsecure/post.srf", &CSkypeProto::OnOAuthAuthorize)
{
this << CHAR_PARAM("wa", "wsignin1.0") << CHAR_PARAM("wp", "MBI_SSL")
<< CHAR_PARAM("wreply", "https://lw.skype.com/login/oauth/proxy?site_name=lw.skype.com")
@@ -39,17 +39,14 @@ struct OAuthRequest : public AsyncHttpRequest
m_szUrl.AppendFormat("?%s", m_szParam.c_str());
m_szParam.Empty();
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
AddHeader("Cookie", cookies);
this << CHAR_PARAM("login", login) << CHAR_PARAM("passwd", password) << CHAR_PARAM("PPFT", ppft);
}
OAuthRequest(const char *t) :
- AsyncHttpRequest(REQUEST_POST, "login.skype.com/login/microsoft", &CSkypeProto::OnOAuthEnd)
+ AsyncHttpRequest(REQUEST_POST, HOST_LOGIN, "/login/microsoft", &CSkypeProto::OnOAuthEnd)
{
- AddHeader("Content-Type", "application/x-www-form-urlencoded");
-
this << CHAR_PARAM ("t", t) << CHAR_PARAM("site_name", "lw.skype.com") << INT_PARAM ("oauthPartner", 999);
}
};