#include <httpclnt.h>
Public Member Functions | |
XMLRPCClient (LPCTSTR url, LPCTSTR agent="HTTP Post Client") | |
void | enable_extensions (bool flag=true) |
string | request_post (const string &in) |
XMLRPCResult | call (XMLRPCCall &call) |
Protected Attributes | |
URL | _parsed_url |
bool | _extensions |
AddressList | _addr |
HTTPConnection | _connection |
Definition at line 191 of file httpclnt.h.
Definition at line 41 of file httpclnt.cpp.
References _connection, _parsed_url, BUFFER_LEN, and request_post().
{ XMLRPCClient::XMLRPCClient(LPCTSTR url, LPCTSTR agent) : _extensions(false), _parsed_url(url), #ifdef USE_WININET _inet_lib(agent), _connection(_inet_lib._hinet, _parsed_url) #else _connection(agent, _parsed_url) #endif
XMLRPCResult XMLRPC::XMLRPCClient::call | ( | XMLRPCCall & | call ) |
Definition at line 82 of file xmlrpc_clnt.cpp.
References XMLRPC::XMLRPCWriter::flush(), and request_post().
{ string xml_str = call.flush(); #ifdef _DEBUG cout << xml_str << endl; #endif string out = request_post(xml_str); #ifdef _DEBUG cout << out << endl; #endif return XMLRPCResult(out); }
void XMLRPC::XMLRPCClient::enable_extensions | ( | bool | flag = true ) |
[inline] |
Definition at line 195 of file httpclnt.h.
{ _extensions = flag; }
string XMLRPC::XMLRPCClient::request_post | ( | const string & | in ) |
Definition at line 109 of file httpclnt.cpp.
Referenced by call(), and XMLRPCClient().
AddressList XMLRPC::XMLRPCClient::_addr [protected] |
Definition at line 215 of file httpclnt.h.
HTTPConnection XMLRPC::XMLRPCClient::_connection [protected] |
Definition at line 216 of file httpclnt.h.
Referenced by XMLRPCClient().
bool XMLRPC::XMLRPCClient::_extensions [protected] |
Definition at line 206 of file httpclnt.h.
URL XMLRPC::XMLRPCClient::_parsed_url [protected] |
Definition at line 205 of file httpclnt.h.
Referenced by XMLRPCClient().