Advertisement
Guest User

Untitled

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