eshaan7 / Flask-Shell2HTTP

Execute shell commands via HTTP server (via flask's endpoints).
https://flask-shell2http.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
170 stars 28 forks source link

Generation of result key #8

Closed m0bi5 closed 3 years ago

m0bi5 commented 3 years ago

I ran a few tests for an API I built to run a certain command line program, however I noticed that the keys returned are always for a given route, no matter what the parameters are, is this a feature?

eshaan7 commented 3 years ago

The route would be same but the key (randomly generated string) will be different each time. Sometimes the key can be same if you call the API with same parameters multiple times within a few seconds (This is done as a rate limiting measure so as to prevent multiple jobs with same parameters, if one such job is already running).

On Sat, Nov 7, 2020, 1:50 AM Mohit Bhasi notifications@github.com wrote:

I ran a few tests for an API I built to run a certain command line program, however I noticed that the keys returned are always for a given route, no matter what the parameters are, is this a feature?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Eshaan7/Flask-Shell2HTTP/issues/8, or unsubscribe https://github.com/notifications/unsubscribe-auth/AD5BILZ5XPK5HZEWZ7OM2CTSORK75ANCNFSM4TNDH2ZA .

eshaan7 commented 3 years ago

You may reach me at https://twitter.com/mask0fmydisguis or https://t.me/maskofmydisguise for better support and faster resolution.