|
Boost Users : |
From: Raja Cherukuri (raja_at_[hidden])
Date: 2007-08-14 17:52:55
Hello,
I am trying to use python to do my XML post ?
Can I do this by directly calling import on the httplib like this and
setting parameters ?
ex:
boost::python::object
http_module((boost::python::handle<>(boost::python::borrowed(PyImport_Ad
dModule("httplib")))));
boost::python::<....some kind of python compile time...interface...> h
= < some kind of cast...>
http_module.HTTP("http://www.abc.com");
h.putrequest('POST', selector)
h.putheader('content-type', content_type)
h.putheader('content-length', str(len(body)))
h.endheaders()
h.send(body)
Or should the actual code for this object reside in a text file and I
should call exec_file ?
Thanks in Advance.
- Raja
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net