msoap / shell2http

Executing shell commands via HTTP server
MIT License
1.35k stars 133 forks source link

Specify HTTP method for each resource #38

Closed setzamora closed 6 years ago

setzamora commented 6 years ago

It looks like that the recent version doesn't support registering resources and specifying the allowed HTTP method for each.

For example:

POST /run/command - to execute GET /run/command - to get the status

msoap commented 6 years ago

Added ability restrict method by prefix:, example: shell2http -form GET:/date 'date' POST:/form 'cat'