diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2014-02-24 17:38:35 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2014-02-24 17:38:35 +0000 |
commit | e62bc2a6f28f6a7b7fcb3996e9fab86fae3239f7 (patch) | |
tree | 6fc970809eb2fbbbf383c1639f83c93a2edf406b /plugins/Dropbox/src/http_request.h | |
parent | 994443d6cdca5a5a1204575a0cea2a198c9d01bb (diff) |
Dropbox:
- added ability to send files to contacts of other protocols
- many other little improvements
git-svn-id: http://svn.miranda-ng.org/main/trunk@8263 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dropbox/src/http_request.h')
-rw-r--r-- | plugins/Dropbox/src/http_request.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/plugins/Dropbox/src/http_request.h b/plugins/Dropbox/src/http_request.h index 81a6dcd99d..79882053e3 100644 --- a/plugins/Dropbox/src/http_request.h +++ b/plugins/Dropbox/src/http_request.h @@ -3,9 +3,17 @@ #include "common.h"
-enum HttpStatus
+enum HTTP_STATUS
{
- OK = 200
+ OK = 200,
+ BAD_REQUEST = 400,
+ UNAUTHORIZED = 401,
+ FORBIDDEN = 403,
+ NOT_FOUND = 404,
+ METHOD_NOT_ALLOWED = 405,
+ TOO_MANY_REQUESTS = 429,
+ SERVICE_UNAVAILABLE = 503,
+ INSUFICIENTE_STORAGE = 507
};
class HttpRequest : public NETLIBHTTPREQUEST, public MZeroedObject
@@ -83,7 +91,7 @@ public: headersCount++;
}
- void AddParameter(LPCSTR szName, LPCSTR szValue)
+ /*void AddParameter(LPCSTR szName, LPCSTR szValue)
{
if (m_szUrl.Find('?') == -1)
m_szUrl.AppendFormat("?%s=%s", szName, szValue);
@@ -97,7 +105,7 @@ public: m_szUrl.AppendFormat("?%s=%i", szName, value);
else
m_szUrl.AppendFormat("&%s=%i", szName, value);
- }
+ }*/
NETLIBHTTPREQUEST *Send()
{
|