日期:2014-05-17  浏览次数:20430 次

HttpWatch导致jquery ajax请求ashx无法获取数据
HttpWatch 版本 8.5.27
javascript代码

$.ajax({
  type: 'POST',
  url: ROOT_PATH + 'handler/MicroBlogAjax.ashx?action=get_wb_comments&t=' + Math.random(),
  data: {
  wb_id: wbid
  },
  //contentType:'text/plain; charset=utf-8',
  success: function (data) {
  callBack(data);
  },
  error: function () {
  return;
  }
  });


ashx主要代码

context.Response.ContentType = "text/plain";
context.Response.Charset = "UTF-8";
context.Request["wb_id"]

开启了HttpWatch Record之后,context.Request["wb_id"]获取值为null,Stop之后,获取正常,有没有同行遇到同样的问题?
HttpWatch jquery ajax ashx?

------解决方案--------------------
{"wb_id": wbid }是这样吧??
------解决方案--------------------
httpwatch有这个问题,我也遇到过,后来把httpwatch卸载了,用firefox的firebug来进行调试工作。
------解决方案--------------------
引用:
引用:httpwatch有这个问题,我也遇到过,后来把httpwatch卸载了,用firefox的firebug来进行调试工作。貌似以前没有遇到过这个情况……

HttpWatch.Professional.v7.1.37我用的是这个版本。还给腾讯浏览器反馈过这个问题(我个人喜好用腾讯浏览器)。