Guest User

Untitled

a guest
Apr 13th, 2013
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data