Allow using custom method names in wxHTTP.

Add wxHTTP::SetMethod().

Also simplify the code by determining the method to use in Connect() instead
of doing it in BuildRequest() itself.

Get rid of the now unused wxHTTP_Req enum.

Closes #15354.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74597 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2013-07-25 21:55:13 +00:00
parent 7e81e3a796
commit 6535170f3d
4 changed files with 44 additions and 40 deletions

View File

@@ -90,6 +90,23 @@ public:
*/
int GetResponse() const;
/**
Set HTTP method.
Set <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html">common</a>
or expanded HTTP method.
Overrides GET or POST methods that is used by default.
@param method
HTTP method name, e.g. "GET".
@since 3.0.0
@see SetPostBuffer(), SetPostText()
*/
void SetMethod(const wxString& method);
/**
It sets data of a field to be sent during the next request to the HTTP server.