+ string[] vals = GetValues (key);
+ if(vals == null)
+ vals = new string[1] {String.Empty};
+
+ bool first_val = true;
+ foreach (string v in vals) {
+ if (!first_val)
+ builder.Append ("&");
+
+ if (key != null && key.Length > 0) {
+ builder.Append (HttpUtility.UrlEncode(key));
+ builder.Append ("=");
+ }
+ if(v != null && v.Length > 0)
+ builder.Append (HttpUtility.UrlEncode(v));
+
+ first_val = false;