配置 Fiddler 使用公司网络的代理?
我正在尝试让 Fiddler 与我公司的代理一起工作。每个外部请求都返回 407。
到目前为止,我尝试添加 oSession.oRequest["Proxy-Authorization"] = "YOURCREDENTIALS";到我在 base64 中使用我的 USERNAME:PASSWORD 的自定义规则。还是没有运气。
有什么想法吗?谢谢。
I'm trying to get Fiddler to work with my company's proxy. Every external request is returning 407.
So far I've tried adding oSession.oRequest["Proxy-Authorization"] = "YOURCREDENTIALS"; to the customized rules where I used my USERNAME:PASSWORD in base64. Still no luck.
Any ideas? Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
对我有用的方法要简单得多:
What worked for me was much more simpler:
我也遇到了同样的问题,并像这样解决了它:
在 OnBeforeRequest 中使用以下行更改了 CustomRules.js:
oSession.oRequest["Proxy-Authorization"] = "Basic sOMeBASE64eNCODEdSTRING=";
所以我的方法和你的非常相似,只是我提前使用 Fiddler 调试授权头来检查服务器需要什么样的代理授权。这样我发现我必须在 Base64 编码凭据之前添加“Basic”,而且我什至不必使用该工具将凭据编码为 Base64。刚刚复制了代理授权标头中的值。
I had the same problem, too, and solved it like this:
Altered the CustomRules.js with the following line within OnBeforeRequest:
oSession.oRequest["Proxy-Authorization"] = "Basic sOMeBASE64eNCODEdSTRING=";
So my approach was quite similar to yours just that in advance I checked what kind of proxy authorization the server required by using Fiddler to debug the authorization header. That way I found out I had to add "Basic" before the Base64 encoded credentials and I didn't even have to use the tool to encode the credentials to Base64. Just copied the value from the proxy authorization header.
我的答案很简单。如果您的公司代理是 NTLM,请下载、设置并配置 cntlm。通过设置代理设置将您的 fiddler 路由到 cntlm 端口。
完毕!这就是我在公司配置fiddler的方式
My Answer is simple. If your company proxy is NTLM, download ,setUp and configure cntlm. Route your fiddler to cntlm port by setting proxy settings.
Done! that is how i configured fiddler in my company
您使用什么版本的 Fiddler?
Fiddler 将自动链接到您组织的代理,并且所有当前版本的 Fiddler 都支持在客户端和身份验证代理之间传递身份验证信息。
您是如何生成相关 HTTP 请求的?确切的 HTTP 响应标头是什么?
What version of Fiddler are you using?
Fiddler will automatically chain to your organization's proxy, and all current versions of Fiddler support passing of authentication information between the client and the authenticating proxy.
How are you generating the HTTP requests in question? What are the exact HTTP response headers?
http://blog.bareweb.eu/2010/10/ http-debugging-fiddler-tip-1/
“规则”菜单中有一个条目用于要求代理身份验证。使用它,你应该会走得更远!
http://blog.bareweb.eu/2010/10/http-debugging-fiddler-tip-1/
There's an entry in the "Rules" menu for Requiring Proxy Authentication. Use that and you should get a bit further!
Fiddler 应该自动获取本机代理配置。
Fiddler should pick up native proxy configuration automatically.