摘要:
using System;using System.Collections;using System.Collections.Generic;using System.IO;using System.Net;using System.Text;using System.Web;using System.Net.Security;using System.Security.Authentication;using System.Security.Cryptography.X509Certificates;namespace Top.Api.Util{ /// /// 网络工具类。 ... 阅读全文
posted @ 2013-11-19 13:49
xust
阅读(289)
评论(0)
推荐(0)
摘要:
有时,在网络编程过程中需要向服务器上传文件。Multipart/form-data是上传文件的一种方式。Multipart/form-data其实就是浏览器用表单上传文件的方式。最常见的情境是:在写邮件时,向邮件后添加附件,附件通常使用表单添加,也就是用multipart/form-data格式上传到服务器。表单形式上传附件具体的步骤是怎样的呢?首先,客户端和服务器建立连接(TCP协议)。第二,客户端可以向服务器端发送数据。因为上传文件实质上也是向服务器端发送请求。第三,客户端按照符合“multipart/form-data”的格式向服务器端发送数据。Multipart/form-data的格 阅读全文
posted @ 2013-11-19 13:47
xust
阅读(1264)
评论(0)
推荐(0)

浙公网安备 33010602011771号