fork download
  1. def str = 'https://content-available-to-author-only.domain/asdf'
  2. def map = str.split("://")
  3.  
  4. def newUrl = map[0] + "://" + "user" + ":" + "pass" + "@" + map[1]
  5. println newUrl
Success #stdin #stdout 2s 123152KB
stdin
Standard input is empty
stdout
https://user:pass@my.domain/asdf