- 博客(2)
- 收藏
- 关注
原创 2021-04-26
学习内容:WebClient()上传文件 private static void WebClient() { string url = “http://ax.gqjjc03.vip/api/sxhz/gqj/outIn”; string safeFileName = Path.GetFileName(“tt.txt”);//文件名(abc.txt) WebClient client = new WebClient(); //定义事件,上传成功事件和上传进度事件 client.UploadFileComple
2021-04-26 16:44:44
108
1
原创 C#WebRequest上传数据到PHP
学习目标: C#WebRequest上传数据到PHP 学习产出: public static string SendHttpData(string url,string data) { var memStream = new MemoryStream(); var request = (HttpWebRequest)WebRequest.Create(url); request.Method = "POST"; request.Con
2021-04-26 16:19:17
260
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅