douyong1850 2017-11-06 17:43
浏览 105
已采纳

为什么curl需要以这种方式设置以允许使用fiddler而其余部分不允许?

I tried using curl with netbean and my traffic do not show up on fiddler.

I look things up and I saw

http://docs.telerik.com/fiddler/Configure-Fiddler/Tasks/ConfigurePHPcURL

It says I have to set proxy to

curl_setopt($ch, CURLOPT_PROXY, '127.0.0.1:8888');

I sort of understand.

But my visual studio, my firefox, and everything doesn't have to set proxy.

Why does my netbean curl requires me to do so?

  • 写回答

1条回答 默认 最新

  • douyun3631 2017-11-06 20:26
    关注

    Configure Browsers for Fiddler > Manual Configuration:

    To manually configure any browser to send traffic to Fiddler, set the browser to connect to a proxy server. This setting is usually in the Options or Preferences menu. Use these settings:

    Address: 127.0.0.1 Port: 8888

    So NetBeans requires the same settings for capturing cURL traffic.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?