本文介绍了如何在HttpClient中使用Fiddler?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道有很多问题/答案,关于此的博客,而不是在谈论Telerik的常见问题解答。我仍然找不到以明确的纯方法诊断和解决的问题:

I know there are many of questions/answers, blogs about this, not talking about Telerik's FAQ. Still I could not find this diagnosed and solved in a clear pure way:

似乎不起作用,因为.net代码希望与实现IAutoWebProxy的对象一起使用,但是IAutoWebProxy被声明为内部对象,不能在我们自己的代码中使用。

Doesn't seem to work because the .net code expects to work with objects that implement IAutoWebProxy, but IAutoWebProxy is declared internal and cannot be used in our own code.

我看到的最简单的解决方案是在运行时使用ApiUrl中的本地计算机名称替换 localhost的功能。无论Fiddler是否正在运行,本地计算机名称都将起作用。

The easiest solution I see is to have a feature that replaces "localhost" with the local machine name in ApiUrl at runtime. The local machine name will work regardless of whether Fiddler is running or not.

这篇关于如何在HttpClient中使用Fiddler?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 15:46