标题:XMLHTTPRequest对象POST方式 Send方法无法传送数据的解决方法
取消只看楼主
coderlee
Rank: 1
等 级:新手上路
帖 子:33
专家分:0
注 册:2006-4-29
 问题点数:0 回复次数:0 
XMLHTTPRequest对象POST方式 Send方法无法传送数据的解决方法
仍然为了大家别走弯路 我刚测试的时候 open中指定使用post方式传递数据

send("Content=123")

content = Request.Form("Content")是接受不到数据的

在open方法前加入
xmlhttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");

就可以了
搜索更多相关主题的帖子: POST Send 数据 对象 Content 
2006-05-12 00:28



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-63564-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 1.110632 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved