diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-04-03 12:29:38 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-04-03 12:29:38 +0000 |
commit | cbf3dd8f411c1336c7bde2b6bbd0eb74941ac60b (patch) | |
tree | 37f5bca463411658f136952345661db54adaa4a5 /protocols/Steam/src/http_request.h | |
parent | a5b7f6edac87d6caedb83e0fa34a3dacda28a175 (diff) |
Steam: authorization, login, contact list retrieving
git-svn-id: http://svn.miranda-ng.org/main/trunk@8839 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r-- | protocols/Steam/src/http_request.h | 20 |
1 files changed, 17 insertions, 3 deletions
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 |