/ Published in: Python
como respuesta a un GET, obtiene un recurso xml del URL que se le pasa como parámtero y lo devuelve
Expand |
Embed | Plain Text
def get_xml(self, remote_addr): remote_file = urllib.urlopen(remote_addr) remote_data = remote_file.read() remote_file.close() self.REQUEST.RESPONSE.setHeader('Content-Type', 'text/xml') return remote_data
You need to login to post a comment.
