当前位置: 代码迷 >> ASP.NET >> 请问 怎么获取 Post 提交的 数据呢
  详细解决方案

请问 怎么获取 Post 提交的 数据呢

热度:2787   发布时间:2013-02-25 00:00:00.0
请教 如何获取 Post 提交的 数据呢?
比如: 

现在这个发帖的页面,当我点击“发表帖子”的按钮时就通过Post方式向CSDN的服务器发送了一些数据,
可我该如何获取到这些数据呢? 

麻烦经验丰富的人提供一个比较方便的方法或工具,或通过代码来监听,谢谢

------解决方案--------------------------------------------------------
Fiddler2
http://www.fiddler2.com/fiddler2/



What is Fiddler?
Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.

Fiddler is freeware and can debug traffic from virtually any application that supports a proxy, including Internet Explorer, Google Chrome, Apple Safari, Mozilla Firefox, Opera, and thousands more. You can also debug traffic from popular devices like Windows Phone, iPod/iPad, and others.
------解决方案--------------------------------------------------------
querystring["id" or "name"].tosting()
------解决方案--------------------------------------------------------
查看的话,可以用http watch,获取的话用request对象request.Form[]或request[]
------解决方案--------------------------------------------------------
一般情况直接通过Request.Form["XXXX"]获取信息。或者可以jQuery的方式通过JSON来传输数据,实现回贴的异步刷新。
------解决方案--------------------------------------------------------
request["name"]
------解决方案--------------------------------------------------------
如果是以 ajax 方式提交的,可以试试 FF 的 Firebug。
------解决方案--------------------------------------------------------
Request.QueryString["xxx"]
------解决方案--------------------------------------------------------
httpwatch7.0.23 HTTPAnalyzerFullV6 两个来监听
------解决方案--------------------------------------------------------
直接用ajax提交form数据。 然后HttpContext.Current.Request["name"]这样取数据;
------解决方案--------------------------------------------------------
C# code
request.Form["params"],你懂的
------解决方案--------------------------------------------------------
1,Request.Form[传的变量名]
2,Request.QueryString[传的变量名]
------解决方案--------------------------------------------------------
火狐的livehttpheader
  相关解决方案