// 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
/////////////////////////////////////////////////////////////////////////////
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,
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();
// internal variables:
+ wxString m_method;
wxStringToStringHashMap m_cookies;
wxStringToStringHashMap m_headers;