Feynman137
Coder
Hello
I have a super simple python script requesting to HTTP post to one of my web pages with PHP script.
[CODE lang="python" title="Python"]import requests
url = 'https://domain.com/page.php'
myobj = {'test': '1'}
x = requests.post(url, data = myobj)
print(x.text)
[/CODE]
Here is the code on the server side:
[CODE lang="php" title="Server Side PHP Script"]<?php
print_r($_REQUEST);
?>[/CODE]
Based on what I've read this should be formatted correctly to send to my web page. But I keep getting the following back from my python script:
[CODE lang="html" title="HTML error"]<head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>[/CODE]
The web page just displays Array(). Does anyone know what the issue could be?
I have a super simple python script requesting to HTTP post to one of my web pages with PHP script.
[CODE lang="python" title="Python"]import requests
url = 'https://domain.com/page.php'
myobj = {'test': '1'}
x = requests.post(url, data = myobj)
print(x.text)
[/CODE]
Here is the code on the server side:
[CODE lang="php" title="Server Side PHP Script"]<?php
print_r($_REQUEST);
?>[/CODE]
Based on what I've read this should be formatted correctly to send to my web page. But I keep getting the following back from my python script:
[CODE lang="html" title="HTML error"]<head><title>Not Acceptable!</title></head><body><h1>Not Acceptable!</h1><p>An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.</p></body></html>[/CODE]
The web page just displays Array(). Does anyone know what the issue could be?