Is there a preferred python module that could help me to send XML through a HTTP request and be able to parse the returning XML?
相关问题
- how to define constructor for Python's new Nam
- streaming md5sum of contents of a large remote tar
- Illegal to have multiple roots (start tag in epilo
- How to get the background from multiple images by
- Evil ctypes hack in python
One way would be to use
urllib2
:Note that you have to set the content-type header, or the request will be sent
application/x-www-form-urlencoded
.If that's too complicated for you, then you can also use the
requests
library.For parsing the response
lxml
is a great library, butelementtree
will also do.