X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/730b772b41ad9df76e5226290bb9eb917ea161f0..853b6cd0e4699dbec2c600d9d0390bdb53150a5f:/interface/wx/protocol/http.h diff --git a/interface/wx/protocol/http.h b/interface/wx/protocol/http.h index cdad04236d..54ffb45821 100644 --- a/interface/wx/protocol/http.h +++ b/interface/wx/protocol/http.h @@ -3,7 +3,7 @@ // Purpose: interface of wxHTTP // Author: wxWidgets team // RCS-ID: $Id$ -// Licence: wxWindows license +// Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// /** @@ -38,9 +38,14 @@ public: By default, connection is made to the port 80 of the specified @a host. You may connect to a non-default port by specifying it explicitly using the second overload. + + Currently wxHTTP only supports IPv4. + + For the overload taking wxSockAddress, the @a wait argument is ignored. */ virtual bool Connect(const wxString& host); virtual bool Connect(const wxString& host, unsigned short port); + virtual bool Connect(const wxSockAddress& addr, bool wait); //@} /** @@ -92,5 +97,25 @@ public: This is a low level function and it assumes that you know what you are doing. */ void SetHeader(const wxString& header, const wxString& h_data); + + /** + Returns the value of a cookie. + */ + + wxString GetCookie(const wxString& cookie) const; + + /** + Returns @true if there were cookies. + */ + bool HasCookies() const; + + /** + Set the data to be posted to the server. + + If a non-empty string is passed to this method, the next request will + be an HTTP @c POST instead of the default HTTP @c GET and the data from + @a post_buf will be posted as the body of this request. + */ + void SetPostBuffer(const wxString& post_buf); };