Use GET instead of POST in nmap example
This commit is contained in:
@@ -40,7 +40,7 @@ bash-4.4#
|
||||
## Test /list endpoint
|
||||
In another terminal, try running:
|
||||
```bash
|
||||
curl -X POST http://localhost:8080/list/github.com
|
||||
curl http://localhost:8080/list/github.com
|
||||
```
|
||||
which will respond something like:
|
||||
```
|
||||
|
||||
@@ -16,4 +16,4 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
kroute add -X POST '/list/{ip}' -c 'nmap -sL $(request /match/ip) | response /body'
|
||||
kroute add -X GET '/list/{ip}' -c 'nmap -sL $(request /match/ip) | response /body'
|
||||
|
||||
Reference in New Issue
Block a user