我们如何检查客户端请求中发送到服务器的信息?
客户端请求发送到服务器的信息有哪些?我们如何查看这些信息?我的意思是我们可以查看这些信息(有什么方法可以检查)吗?
What are the information sent to server in a client request?How can we check those information? I mean can we view those information(Is there any way to check)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
Firebug 中的网络面板是我通常检查请求和响应以进行调试的方式。
The Net panel in Firebug is how i usually check both request and response for debugging.
当您在网站上提交表单时,您可以通过编写在提交表单时调用的脚本来获取提交的值。例如,您有一个登录表单。该表单由登录名和密码字段组成。
此表单向表单的操作属性中定义的某个位置发出 POST 请求:
然后,在您的脚本中,您需要使用请求对象从中检索元素,这些将是您的用户提交的信息。
you can get the value of the submission when you submit a form on a website by writing a script to be called when the form is submitted. For example, you've got a login form. The form consists of login and password fields.
This form makes a POST request to some location, defined in the form's action attribute:
then, in your script, you would need to use the request object to retrieve elements from it and those will be the info that your user submitted.