private void SerializeRequest() { if (body == null) { StringBuilder build = new StringBuilder(); foreach (KeyValuePair <string, string> entry in request) { if (build.Length > 0) { build.Append("&"); } build.Append(URI.EscapeDataString(key)).Append("=").Append(URI.EscapeDataString(value)); } body = Encoding.UTF8.GetBytes(build.ToString()); } }