18 Aug
2007
18 Aug
'07
8:14 p.m.
on Fri Aug 17 2007, "Raja Cherukuri"
Thanks it works fine...how do check the return response... Using extract<string> or
doesn't seem to help..
What does it do?
Am I doing something wrong ?
You might try to figure out what's in response by printing it. Maybe respose["result"] is not a string, or else maybe it's unicode...
Here is the code:
boost::python::object response = gpPythonHttp->attr("urlopen")(m_sURI.c_str(),strXMLOutput.c_str()); boost::python::exec("result = read()", response); std::string res = boost::python::extractstd::string(response["result"]);
-- Dave Abrahams Boost Consulting http://www.boost-consulting.com The Astoria Seminar ==> http://www.astoriaseminar.com