菲德勒/ C#:请求搜索的内容/响应特殊短语 [英] Fiddler/C#: search content of request/response for special phrases

查看:93
本文介绍了菲德勒/ C#:请求搜索的内容/响应特殊短语的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我首次访问计算器和现在我感觉很舒服与本网站

this is my first visit to stackoverflow and right now I feel very comfortable with this site.

这已经帮我获得的 FiddlerCore 嵌入到微软的Visual C#2008 Express Edition的。结果
只需要创建一个引用(Verweis)至从项目资源管理器(Projektmappenexplorer)在微软的Visual C#EE的fiddlercore DLL。希望这是在英文版它的名字。在此之后,你可以使用Fiddler.FiddlerApplication东西等。

It already helped me to get the FiddlerCore embedded into MS Visual C# 2008 Express Edition.
Just needed to create a reference(Verweis) to the fiddlercore dll from Project Explorer(Projektmappenexplorer) in MS Visual C# EE. Hope this are the names for it in the english version. After this you can use Fiddler.FiddlerApplication stuff etc.

我要创建一个小程序,它是能够使用FiddlerCore检查请求的机构/响应对特殊的JavaScript代码。结果,
这使开发者能够检查阉其代码是有效的在那里浏览器的另一个版本(特别是从IE 6.x到IE 8.x中)或不。为了能够做到这一点,我需要知道:

I want to create a small program which is able to use the FiddlerCore to check the bodies of requests/responds for special JavaScript Code.
This enables the developers to check wether their code is valid in another versions of there Browser (especially from IE 6.x to IE 8.x) or not. To be able to do so, I need to know:

结果
这必须有事情做与文本视图督察(小提琴手),但我不能找到一个可能性与.NET代码访问,或在提琴手这也将有很大的帮助了。

我应该能够通过谷歌或计算器某些搜索完成剩下的东西。结果
因为这是我第一次用.NET语言,这将是非常有趣的和苛刻的。

I should be able to finish the remaining stuff with some search by google or stackoverflow.
As this is my first time with .net languages this will be very interesting and demanding.

推荐答案

看看这个例子。在 BeforeResponse 回调 Fiddler.Session 作为参数传递。这个对象有一个名为方法 GetResponseBodyAsString 。正如它的名字建议你可以尝试用它来得到响应文本。还有一个 GetRequestBodyAsString 的请求方法。

Take a look at this example. In the BeforeResponse callback a Fiddler.Session is passed as argument. This object has a method called GetResponseBodyAsString. As its name suggest you may try using it to get the response text. There's also a GetRequestBodyAsString method for the request.

这篇关于菲德勒/ C#:请求搜索的内容/响应特殊短语的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆