This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Sophos XG Firewall Rest-API authentication with special characters

Hi Folks,

We are trying to login Sophos XG using Rest-API (python) works fine but when using password with special character getting below error, even tried escaping string in password ``from xml.sax.saxutils import escape``



<Response>\n  <Status code="529">Input request file is Invalid</Status>\n</Response>

import requests

req_xml = '<?xml version="1.0" encoding="UTF-8" ?><Request><Login><Username>secure_user</Username><Password>secure_password</Password></Login><GET><Services></Services></GET></Request>'
requests.get("https://<host>:<port>/webconsole/APIController?reqxml=" + req_xml)



This thread was automatically locked due to age.