弘帝企业智能建站系统交流平台

 找回密码
 立即注册
查看: 1464|回复: 0

【C#】POST传值

[复制链接]
发表于 2020-6-21 00:21:25 | 显示全部楼层 |阅读模式
string re;
try
{
    //POST到API网址
    Dictionary<string, string> sParaTemp = new Dictionary<string, string>()
    {
        ["name"] = Request.Form["name"],
        ["tel"] = Request.Form["tel"],
        ["type"] = Request.Form["type"],
        ["content"] = Request.Form["content"]
    };
    string sHtmlText = Submit.Post(@"http://cloud/api/trade.ashx", sParaTemp);
    re = sHtmlText;
               
}
catch (Exception ex)
{
    re = ex.Message;
}
return re;
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|Archiver|手机版|小黑屋|弘帝企业智能建站系统 ( 皖ICP备07503252号 )

GMT+8, 2024-4-20 21:00 , Processed in 0.071157 second(s), 23 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表