Skip to content

Instantly share code, notes, and snippets.

@tluyben
Created January 27, 2015 18:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tluyben/4afdb170e16ee49fba31 to your computer and use it in GitHub Desktop.
Save tluyben/4afdb170e16ee49fba31 to your computer and use it in GitHub Desktop.
curl --data '{"email":"test7@ola.pt","password":"123456"}' http://iys.pixelly.co.uk/api/users/login/ --happlication/json"|perl -e '$l = <>; chomp($l); $uid=-1; foreach($l=~/\"UserId\"\: (\d+)/isgm) {chomp($_); if ($uid>0 and $_!=$uid){print "$_ is not $uid, AAARGH\n"; exit;}; $uid=$_; }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment