|
string postfile = "c:\aa.txt"
//创建Httphelper对象
HttpHelper http = new HttpHelper();
//创建Httphelper参数对象
HttpItem item = new HttpItem()
{
URL = "http://61.184.220.39:9000/BSCTelmed/api/teleconsultation/uploadFile?clinicid=8a8189e37e744cb993df60d59e48414b",//URL 必需项
Method = "post",//URL 可选项 默认为Get
ContentType = "application/x-www-form-urlencoded",//返回类型 可选项有默认值
PostDataType = PostDataType.FilePath,
Postdata = postfile
};
//请求的返回值对象
//获取请请求的Html
string html = http.GetHtml(item).Html;
我把参数拼接到URL里面了,但是这样不行,POST 上传文件时,如何在传其他参数?
|
|