Guest User

JSON с arenda-piter.ru

a guest
May 4th, 2018
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.39 KB | None | 0 0
  1. #!/bin/sh
  2. jarfile="${PWD}/jarfile"
  3. session=$(curl -c "${jarfile}" https://arenda-piter.ru/newmap/ 2>/dev/null \
  4.   | grep sessionKey \
  5.   | sed -e "s/.*sessionKey='//g" -e "s/';//g")
  6.  
  7. curl 'https://arenda-piter.ru/newmap/scripts/objects.php' \
  8.   -b "${jarfile}" \
  9.   --data "latLB=28.467502285642258&lonLB=-2.7223292549499623&latRT=67.06932409030105&lonRT=8.791342620050052&sessionKey=${session}"
Advertisement
Add Comment
Please, Sign In to add comment