配置提琴手使用公司网络的代理? [英] Configuring Fiddler to use company network's proxy?

查看:324
本文介绍了配置提琴手使用公司网络的代理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让提琴手与我公司的代理工作。每一个外部请求返回407

到目前为止,我已经尝试添加oSession.oRequest [代理授权] =YOURCREDENTIALS;到自定义的规则,我用我的用户名:密码以Base64。仍然没有运气。

任何想法?谢谢你。


解决方案

  

注:没有与可用更高的投票的答案。由于 SO排序它是公认的答案如下。


我有同样的问题,也并解决它像这样:


  1. 入门提琴手与它的标准配置。

  2. 启动IE浏览器,并提出了HTTP请求到外部网站。

  3. 代理授权对话框弹出,在那里我进入我的凭据。

  4. 在提琴手搜索代理授权请求头。

  5. 复制看起来像基本sOMeBASE64eN codedSTRING =到剪贴板标头值。

  6. 改变了CustomRules.js与内OnBeforeRequest以下行:

    oSession.oRequest [代理授权] =基本sOMeBASE64eN codedSTRING =;


所以,我的方法是非常相似你只是事先我检查什么样的代理授权的使用提琴手调试授权头所需的服务器。这样,我发现我有Base64编码前加基本恩codeD凭据,我甚至没有使用的工具为en code凭据Base64编码。刚才复制从代理授权头的值。

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.

解决方案

Note: There is an answer with a higher voting available. Because of SO sorting it is below the accepted answer.

I had the same problem, too, and solved it like this:

  1. Started Fiddler with it's standard configuration.
  2. Started IE and made a HTTP-request to an external web-site.
  3. The proxy authorization dialogue popped up, where I entered my credentials.
  4. In Fiddler searched the request headers for "Proxy-Authorization".
  5. Copied the header value which looked like "Basic sOMeBASE64eNCODEdSTRING=" to the clipboard.
  6. 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.

这篇关于配置提琴手使用公司网络的代理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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