• 请不要在回答技术问题时复制粘贴 AI 生成的内容
rupert
V2EX  ›  程序员

charles 抓包,为什么使用 cURL 要加上 --proxy 8888

  •  
  •   rupert · Jan 16, 2017 · 5544 views
    This topic created in 3411 days ago, the information mentioned may be changed or developed.

    别的应用如 chrome/safari/iQiqi/网易云音乐 等都是可以正常抓包, 为什么 command-line client 上使用 curl 就非得加上呢?

    猜测其他应用默认上 charlse 的代理,疑惑的是因为什么让 curl 如此不同?

    6 replies    2017-01-17 17:07:03 +08:00
    fsgmhoward
        1
    fsgmhoward  
       Jan 16, 2017 via iPhone
    Bash 不走代理
    wanttofly
        2
    wanttofly  
       Jan 16, 2017
    默认端口 1080
    thekll
        3
    thekll  
       Jan 17, 2017
    有些程序实现会隐式地自动去找系统设定的代理,有些则需要显式地手动指定,有些干脆没有接口。
    zhangyubaka
        4
    zhangyubaka  
       Jan 17, 2017
    curl 默认不会去走代理.
    onlyice
        5
    onlyice  
       Jan 17, 2017 via Android
    因为 Chrome 用了系统代理配置,一样走了 Charles 代理
    julyclyde
        6
    julyclyde  
       Jan 17, 2017
    这个问题的答案是: Charles 并不抓包
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   973 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 21:45 · PVG 05:45 · LAX 14:45 · JFK 17:45
    ♥ Do have faith in what you're doing.