Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- HOST=localhost
- DB=testauth
- data=$(cat <<DATA
- {"id": 1, "method": "common.server.login", "params": ["$1", "$2"]}
- DATA
- )
- ret=$(wget -q -O - --no-http-keep-alive --post-data="$data" \
- --header="Content-Type: text/json" http://$HOST:8000/$DB)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement