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