My Python code:
import requests
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36'}
xml_data1 = "hello"
hostxml = "example.com/xmlrpc.php"
check_method = requests.post(hostxml,data='1', verify=False,headers=headers).text
print(check_method)
Output:
Not Acceptable!
An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.