fork(10) download
  1. def str = 'https://w...content-available-to-author-only...s.net/path?token=eyJ0eXAiOiJKV1Qi&value=123456789'
  2. def map = new URL(str).query?.split('&').collectEntries{ [(it.split('=').first()): it.split('=').last()]}
  3. println map.token
  4. println map.value
Success #stdin #stdout 0.99s 2252800KB
stdin
Standard input is empty
stdout
eyJ0eXAiOiJKV1Qi
123456789