mapdata += "<?xml version=\"1.0\" encoding=\"gb2312\" ?>";
.......
string path="";
path=Server.MapPath("XMLFile1.xml");
byte[] SomeBytes=new byte[1024];
WebRequest req = WebRequest.Create ("http://127.0.01/lianxi/WebForm1.aspx");
req.Method = "GET";
req.ContentType = "text/html";
XmlDocument xmldoc1= new XmlDocument();
//要发送xml的路径.
xmldoc1.Load(path);
SomeBytes = System.Text.Encoding.UTF8.GetBytes(mapdata);
req.ContentLength = SomeBytes.Length;
Stream newStream = req.GetRequestStream();
newStream.Write(SomeBytes, 0,SomeBytes.Length);
newStream.Close();
Response.Write("发送完毕"); 怎么执行到 【req.GetRequestStream();】 就包
【无法发送具有此谓词类型的内容正文。】
高手帮解答一下1!!!
.......
string path="";
path=Server.MapPath("XMLFile1.xml");
byte[] SomeBytes=new byte[1024];
WebRequest req = WebRequest.Create ("http://127.0.01/lianxi/WebForm1.aspx");
req.Method = "GET";
req.ContentType = "text/html";
XmlDocument xmldoc1= new XmlDocument();
//要发送xml的路径.
xmldoc1.Load(path);
SomeBytes = System.Text.Encoding.UTF8.GetBytes(mapdata);
req.ContentLength = SomeBytes.Length;
Stream newStream = req.GetRequestStream();
newStream.Write(SomeBytes, 0,SomeBytes.Length);
newStream.Close();
Response.Write("发送完毕"); 怎么执行到 【req.GetRequestStream();】 就包
【无法发送具有此谓词类型的内容正文。】
高手帮解答一下1!!!
解决方案 »
- ASP.NET网站中替换第一次出现的关键词的有效方法
- 如何才能在手机浏览器里播放背景音乐
- 我做的网站上传到虚拟主机出现连接数据库错误!
- 关于access中,日间函数的使用
- 关于session:将sessionState中mode="SQLServer"后,出现“SqlException: 用户 'ASE\ASPNET' 登录失败”的错误
- me.session和page.session右什么区别阿
- “安全性异常 ”问题
- sql 条件查询语句
- DataGrid的显示?当鼠标移到某行某列时该处数据颜色发生变化(加亮或者其他颜色)。
- 关于Web服务器与数据库服务器不在一台机上连接问题(高手请进,帮忙)
- 上传图片时如何限制图片的大小和尺寸?
- CSS控制不了ASP.NET控件的属性?求教!
*****************************************************************************
欢迎使用CSDN论坛专用阅读器 : CSDN Reader(附全部源代码) http://www.cnblogs.com/feiyun0112/archive/2006/09/20/509783.html