Hello, We have a lookup plugin we are developing. It uses open_url() to grab an XML file and display it. Pretty simple, The problem is that the output comes back with the text encoded (i.e. " and \r and \n and %29 etc etc).
In Python, in the lookup plugin, we obviously tried replace(), but when we run the lookup plugin the output goes back to the " \r \n characters.
We were hoping for a canned solution so our customers don’t have to take this output and run it through a decoder.
Any help pointing us in a general direction would be greatly appreciated.
In a nutshell this is it:
`
response = open_url(fullurl, validate_certs=self.get_option(‘validate_certs’), use_proxy=self.get_option(‘use_proxy’), headers={‘Content-Type’: ‘application/json’, ‘Authorization’: “Basic %s” % auth})
ret.append(to_text(response.read()))
`
Thanks