From e62bc2a6f28f6a7b7fcb3996e9fab86fae3239f7 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 24 Feb 2014 17:38:35 +0000 Subject: 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 --- plugins/Dropbox/src/http_request.h | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'plugins/Dropbox/src/http_request.h') 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() { -- cgit v1.2.3