From cbf3dd8f411c1336c7bde2b6bbd0eb74941ac60b Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 3 Apr 2014 12:29:38 +0000 Subject: Steam: authorization, login, contact list retrieving git-svn-id: http://svn.miranda-ng.org/main/trunk@8839 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Steam/src/http_request.h | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) (limited to 'protocols/Steam/src/http_request.h') diff --git a/protocols/Steam/src/http_request.h b/protocols/Steam/src/http_request.h index 6d142bdc73..3d433009e8 100644 --- a/protocols/Steam/src/http_request.h +++ b/protocols/Steam/src/http_request.h @@ -1,7 +1,7 @@ #ifndef _HTTP_REQUEST_H_ #define _HTTP_REQUEST_H_ -#include "steam.h" +#include "common.h" enum HTTP_STATUS { @@ -127,13 +127,21 @@ public: m_szUrl.AppendFormat("&%s=%s", szName, szValue); } - /*void AddParameter(LPCSTR szName, int value) + void AddParameter(LPCSTR szName, int value) { if (m_szUrl.Find('?') == -1) m_szUrl.AppendFormat("?%s=%i", szName, value); else m_szUrl.AppendFormat("&%s=%i", szName, value); - }*/ + } + + void AddParameter(LPCSTR szName, UINT64 value) + { + if (m_szUrl.Find('?') == -1) + m_szUrl.AppendFormat("?%s=%llu", szName, value); + else + m_szUrl.AppendFormat("&%s=%llu", szName, value); + } NETLIBHTTPREQUEST *Send() { @@ -148,4 +156,10 @@ private: HANDLE m_hNetlibUser; }; +/*class HttpPostRequest : public HttpRequest +{ +public: + HttpPostRequest(HANDLE hNetlibUser, LPCSTR url) : HttpRequest(hNetlibUser, REQUEST_POST, url) { } +};*/ + #endif //_HTTP_REQUEST_H_ \ No newline at end of file -- cgit v1.2.3