summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/http_request.h
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/http_request.h')
-rw-r--r--protocols/Steam/src/http_request.h20
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