Scala-ize some java GET request code

don't tell anyone but there was a little copy/paste involved initially
here ;)