SHOW:
|
|
- or go back to the newest paste.
1 | #!/bin/bash | |
2 | ||
3 | HOST=localhost | |
4 | DB=testauth | |
5 | ||
6 | data=$(cat <<DATA | |
7 | {"id": 1, "method": "common.server.login", "params": ["$1", "$2"]} | |
8 | DATA | |
9 | ) | |
10 | ||
11 | ret=$(wget -q -O - --no-http-keep-alive --post-data="$data" \ | |
12 | --header="Content-Type: text/json" http://$HOST:8000/$DB) |