首页| JavaScript| HTML/CSS| Matlab| PHP| Python| Java| C/C++/VC++| C#| ASP| 其他|
购买积分 购买会员 激活码充值

您现在的位置是:虫虫源码 > ASP > C # POST HTTP(加长版)

C # POST HTTP(加长版)

  • 资源大小:7.50 kB
  • 上传时间:2021-06-30
  • 下载次数:0次
  • 浏览次数:0次
  • 资源积分:1积分
  • 标      签:

资 源 简 介

About This is class to sending HTTP POST requests to the server and receive responses. How to use: ``` string serviceUrl = "http:example.com" string filePath = "C: est.txt" PostSubmitter ps = new PostSubmitter(new Uri(serviceUrl)); ps.WriteField("name0", filePath); FileInfo fi = new FileInfo(filePath); ps.WriteFile("content0", "application/octet-stream", fi); ps.Close(); string strResponse = ps.GetResponse(); ``` Here was taken the original idea: http://geekswithblogs.net/rakker/archive/2006/04/21/76044.aspx
VIP VIP
0.175664s