Advertisement
Guest User

Untitled

a guest
Apr 13th, 2013
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.25 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. data=$(cat <<DATA
  4. {"id": 1, "method": "common.server.version", "params": [null, null]}
  5. DATA
  6. )
  7.  
  8.  
  9. ret=$(wget -q -O - --no-http-keep-alive --post-data="$data" \
  10.         --header="Content-Type: text/json" http://127.0.0.1:8000/)
  11.  
  12. echo $ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement