rankzy
Cadet
- Joined
- Mar 24, 2022
- Messages
- 4
I try to make a php script to start a jail and I found out that best way is to use the api v2.0.
But first I want to just try curl in cmd but can't figure out how to do it.
This is what I have:
I don't know where to specify the jail name either.
The response I get is just a number that increases by 1 every time I redo the request.
But first I want to just try curl in cmd but can't figure out how to do it.
This is what I have:
Code:
curl -X POST "http://192.168.1.200/api/v2.0/jail/start" -H "accept: */*" -H "Authorization: Bearer 1-xxx" -H "Content-Type: application/json"
I don't know where to specify the jail name either.
The response I get is just a number that increases by 1 every time I redo the request.