public string getPostBackStream(string rUrl) { WebClient myWebClient = new WebClient(); NameValueCollection myNameValueCollection = new NameValueCollection(); myNameValueCollection.Add("title", "this is title"); myNameValueCollection.Add("excerpt", "this is excerpt"); byte[] responseArray = myWebClient.UploadValues(rUrl, "POST", myNameValueCollection); return Encoding.ASCII.GetString(responseArray); }
时间: 2024-10-12 20:53:34