Use GET instead of POST in nmap example

This commit is contained in:
pancho horrillo
2019-05-13 11:48:42 +02:00
parent e588785dd1
commit 8acf8fa4b4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ bash-4.4#
## Test /list endpoint ## Test /list endpoint
In another terminal, try running: In another terminal, try running:
```bash ```bash
curl -X POST http://localhost:8080/list/github.com curl http://localhost:8080/list/github.com
``` ```
which will respond something like: which will respond something like:
``` ```
+1 -1
View File
@@ -16,4 +16,4 @@
# limitations under the License. # 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'