The commented out code was part of my attempts to use RestSharp. Didn't want to delete it yet as perhaps i'd find a fix for the bug i been having with the trailing /.