Advertisement
Guest User

Untitled

a guest
Aug 19th, 2013
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement