public void SetPostData(UrlForm form) { var postText = String.Join("&" , form.Select(x => x.Key + "=" + x.Value)); SetPostData(Encoding.ASCII.GetBytes(postText)); }