简体   繁体   English

使用Live HTTP标头

[英]using Live HTTP Headers

On a website, I enter some parameters in a form, click on search and then get a page with a message "retrieving your results". 在网站上,我在表单中输入一些参数,单击搜索,然后获取一个页面,其中包含“检索结果”消息。 After the search is complete, I get another page with my results displayed. 搜索完成后,我会看到另一页显示我的结果。

I am trying to recreate this programatically and I used Live HTTP Headers to get a peek of what is going on behind ie the url, form variables,etc. 我试图以编程方式重新创建这个,并使用Live HTTP Headers来查看后面发生的事情,即url,表单变量等。 However, I'm only getting information of what goes on up to the page which shows "retrieving your results". 但是,我只是获取了显示“检索结果”页面的信息。 Live HTTP Header is not giving me information up to the page which contains the final results. 实时HTTP标头不会向我提供包含最终结果的页面的信息。

What can I do to get this final bit of information (ie the url, form variables, etc) 我该怎么做才能获得最后一点信息(即url,表单变量等)

I use Charles HTTP Proxy for all my HTTP troubleshooting needs. 我使用Charles HTTP Proxy来满足我的所有HTTP故障排除需求。 It has a ton of options and works with any browser. 它有很多选项,适用于任何浏览器。

@Mark Harrison @Mark Harrison

I have webdeveloper installed. 我安装了webdeveloper。 Initially, I used it to turn off meta-redirects and referrers to get a clearer picture of the http interaction. 最初,我用它来关闭元重定向和引用来更清楚地了解http交互。 But when i do this, the website does not work (ie it is not able to complete the process of retrieving my search results) so i turned it back on. 但是当我这样做时,网站不起作用(即它无法完成检索我的搜索结果的过程),所以我重新开启了它。

I'm wondering if anyone has had to capture http information for a site that has a processing page in between the user input page and the results page 我想知道是否有人必须捕获在用户输入页面和结果页面之间有处理页面的站点的http信息

That sounds weird? 这听起来很奇怪? I'm pretty sure that LiveHttpHeaders should show this. 我很确定LiveHttpHeaders应该显示这个。 Can you double check that you aren't missing something? 你能仔细检查一下你是不是错过了什么? Otherwise try with Firebug. 否则尝试使用Firebug。 It has a tab for "network", which shows all requests made. 它有一个“网络”选项卡,显示所有请求。

I'm using Fiddler2 , which is a free (as in beer), highly configurable proxy; 我正在使用Fiddler2 ,它是一个免费的(如在啤酒中),高度可配置的代理; works with all browsers, allows header inspection/editing/automodification on request/response. 适用于所有浏览器,允许对请求/响应进行标题检查/编辑/自动修改。

Disclaimer: I'm in no way affiliated with Fiddler, just a (very happy) user. 免责声明:我与Fiddler无关,只是一个(非常高兴)的用户。

我对这些问题总是激发一个Ethereal或类似的网络间谍工具,以确切地看到,发生了什么。

The document is creating a browser component called XMLHTTPRequest , on submit event the object method send() is called, during the waiting time for server response an html element is replaced with a "Waiting message" on succesfull response a callback is called with the new html elements and then inserted in the selected html element. 该文档正在创建一个名为XMLHTTPRequest的浏览器组件,在提交事件中调用对象方法send(),在服务器响应的等待时间内,在成功响应时用“等待消息”替换html元素,使用new调用回调html元素然后插入选定的html元素。 (That's called ajax). (那叫做ajax)。

If you want to follow that process you can use Firefox Live HTTP Headers Extension , or Wireshark to view full HTTP headers and actions (get/post/). 如果要遵循该过程,可以使用Firefox Live HTTP Headers Extension 或Wireshark查看完整的HTTP标头和操作(get / post /)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM