hello321
V2EX  ›  问与答

请教一个关于 cefsharp 给 url 添加固定参数的办法

  •  
  •   hello321 · Apr 22, 2021 · 874 views
    This topic created in 1872 days ago, the information mentioned may be changed or developed.
    • 要给现有 winform 项目增加一个功能,访问任意 url 尾巴要加上 mac=xxx 参数

    • 查找了关于 cef 的资料 有个启动命令参数 extra-search-query-params 似乎可以满足需求,奈何没有测试成功.

    • 请教 v 友有做过类似功能么

    2 replies    2021-04-23 11:44:39 +08:00
    ysc3839
        1
    ysc3839  
       Apr 23, 2021
    CefRequestHandler::OnBeforeBrowse?
    hello321
        2
    hello321  
    OP
       Apr 23, 2021
    @ysc3839 似乎不可,找到的资料说是暂时没有在请求之前可以对 IRequest request 参数进行修改的方法.暂时只能用 GetResourceHandler 对 url 修改重定向
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1156 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:39 · PVG 07:39 · LAX 16:39 · JFK 19:39
    ♥ Do have faith in what you're doing.