protected string GetParameters(Dictionary<string, string> values)
{
if (values == null) throw new ArgumentNullException("values");
string parameters = string.Empty;
bool first = true;
foreach (var val in values)
{
if (!first)
parameters += "&";
parameters += string.Concat(val.Key, "=", val.Value);
first = false;
}
return parameters;
}