using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Net;
using System.Collections.Specialized;
public partial class _Default : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
string url = "https://example.tj/service";
using (var webClient = new WebClient())
{
String str = "SomeTextForText";
var response = webClient.UploadString(url, str);
}
}
}
为什么我要
糟糕的事情出了问题:(稍后再试一次
就行了
webClient.UploadString(url, str);