X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ab9d6a4c8b9ba090b5b8c77c4afbbbe4043030a1..66c2bf7b1d9326fb650acfaae22ec50528cfbf7c:/include/wx/protocol/http.h?ds=sidebyside diff --git a/include/wx/protocol/http.h b/include/wx/protocol/http.h index 476df9189a..cfa2e6f944 100644 --- a/include/wx/protocol/http.h +++ b/include/wx/protocol/http.h @@ -4,7 +4,6 @@ // Author: Guilhem Lavaux // Modified by: Simo Virokannas (authentication, Dec 2005) // Created: August 1997 -// RCS-ID: $Id$ // Copyright: (c) 1997, 1998 Guilhem Lavaux // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -36,6 +35,7 @@ public: wxString GetHeader(const wxString& header) const; int GetResponse() const { return m_http_response; } + void SetMethod(const wxString& method) { m_method = method; } void SetHeader(const wxString& header, const wxString& h_data); bool SetPostText(const wxString& contentType, const wxString& data, @@ -51,19 +51,12 @@ public: wxDEPRECATED(void SetPostBuffer(const wxString& post_buf)); protected: - enum wxHTTP_Req - { - wxHTTP_GET, - wxHTTP_POST, - wxHTTP_HEAD - }; - typedef wxStringToStringHashMap::iterator wxHeaderIterator; typedef wxStringToStringHashMap::const_iterator wxHeaderConstIterator; typedef wxStringToStringHashMap::iterator wxCookieIterator; typedef wxStringToStringHashMap::const_iterator wxCookieConstIterator; - bool BuildRequest(const wxString& path, wxHTTP_Req req); + bool BuildRequest(const wxString& path, const wxString& method); void SendHeaders(); bool ParseHeaders(); @@ -81,6 +74,7 @@ protected: // internal variables: + wxString m_method; wxStringToStringHashMap m_cookies; wxStringToStringHashMap m_headers;