static string CombineUrl(string part1, string part2) { if(!part1.EndsWith("/")) part1 += "/"; return part1 + part2; }