客户端 用C# 代码:
public static void PostString (string address)
{
string data = "Time = 12:00am temperature = 50";
string method = "POST";
WebClient client = new WebClient ();
string reply = client.UploadString (address, method, data); Console.WriteLine (reply);
}问 服务器端(aspx) 如何接收和处理 发送过来的数据? 注意是UploadString ,不是UploadFile
public static void PostString (string address)
{
string data = "Time = 12:00am temperature = 50";
string method = "POST";
WebClient client = new WebClient ();
string reply = client.UploadString (address, method, data); Console.WriteLine (reply);
}问 服务器端(aspx) 如何接收和处理 发送过来的数据? 注意是UploadString ,不是UploadFile
解决方案 »
- 用c#开发读写M1卡控件遇到瓶颈,求大神参观知道
- 急 在线等!!!!!!!!
- 在 GridView和 DataGrid 里如何获取某一列各行的值?
- c# 调用C++DLL时的double *参数如何转换
- c#中如何根据时间改变窗口颜色
- 无法登陆到msn messenger,提示80048820,防火墙设置问题哦!所有挽救偏方都试了还是无效,似乎要永远告别msn了。
- ComboBox的问题
- 怎样获得操作系统的语言版本﹖
- 在webform中如何动态创建一个*.txt文件,并写入内容???
- 如何代码出发MouseDown事件
- 用C#编写的软件能不能用html语言做界面,应该怎么做?
- 请问 C#如何把对象转化为json和json转化为对象?
<Script language="C#" runat=server>protected void Page_Load(object sender, EventArgs e)
{
string post_date = new StreamReader(Request.InputStream).ReadToEnd();
}
</Script>
是这样写吗?