summaryrefslogtreecommitdiffstats
path: root/src/ogProcess.py
Commit message (Collapse)AuthorAgeFilesLines
* Add ogRest class to generate API Rest ResponsesAlvaro Neira Ayuso2020-01-191-5/+12
| | | | | This class now, allow us to generate API Rest responses. In the future, the idea is to complete this class with get and post messages if it's needed.
* Port program to Python 3Alvaro Neira Ayuso2020-01-191-1/+1
| | | | | Python 2.7 will be deprecated in January of 2020. So, we need to have the program with a supported api.
* Remove unneeded logsAlvaro Neira Ayuso2020-01-191-2/+0
|
* Add Probe HTTP CommandAlvaro Neira Ayuso2020-01-191-0/+2
|
* Send bad request when the APIRest operation is not supportedAlvaro Neira Ayuso2020-01-191-0/+4
| | | | | | | | | | | | | | Our program sends always the HTTP message: HTTP/1.0 200 OK but if the operation sent is not supported, we are sending the same correct message. This patch add the support to check if the message is supported. If the message is not supported, we are going to send: HTTP/1.0 400 Bad request\r\n\r\n Otherwise, in operations supported: HTTP/1.0 200 OK
* Add new process support for reboot messageAlvaro Neira Ayuso2020-01-191-0/+8
|
* Add ogProcess and ogOperation for linuxAlvaro Neira Ayuso2020-01-191-0/+20
Thoses new classes allows us to process and execute commands from server side sent using HTTP format.