将方法发布到调制解调器 [英] post method to modem
本文介绍了将方法发布到调制解调器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi Experts
如何使用post方法将数据发送到调制解调器.我搜索了Google,但没有发现任何想法.我写我的应用程序是这样的:
字符串 ipadd = Request.UserHostAddress;
如果(Request.Form [" ]!= 为空)
{
// 从响应中清除现有内容
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
// 设置响应类型
Response.ContentType = " ;
字节 [] bt = ReadFully(流流, int initialLength)
Response.Write(" );
// Response.End();
}
它不适用于调制解调器.当我在post命令中发送数据时,将显示类似响应失败"的错误.根本不会上班.调制解调器通常通过串行端口连接,除非您不是在说将普通调制解调器连接到电话线上?
Hi Experts
how to send data to modem using the post method. I searched Google but was not getting an idea. I write my application like:
string ipadd = Request.UserHostAddress;
if (Request.Form["AUTH"] != null)
{
//Clear existing stuff from response
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
//Set response type
Response.ContentType = "text/plain";
byte [] bt=ReadFully(Stream stream, int initialLength)
Response.Write(" testing the data");
//Response.End();
}
it is not working with modems. When I send the data in the post command, an error will display like "response failed".
解决方案
Unless your modem has a web server built into it, this isn''t going to work at all. Modems are usually connected via Serial ports, unless you''re not talking about a normal modem connected to a phone line?
这篇关于将方法发布到调制解调器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文