【问题标题】:Redirect http://- to https:// with tsung recorder使用 tsung 记录器将 http://- 重定向到 https://
【发布时间】:2014-05-08 11:28:38
【问题描述】:

我正在尝试从我的 ubuntu 虚拟机运行 tsung-recorder

我在firefox中设置了代理,localhost:8090

我尝试使用 tsung-recorder 的网站是 https://

根据the docs

对于 HTTPS 录制,请在浏览器中使用 http://- 而不是 https://

我的应用也是一个单页应用,它从客户端向 API 发出请求。
使用这种方法,我的应用程序正在尝试向 http://-api.whatever.com 发出请求,而它应该是 https://api.whatever.com

有没有办法解决这个问题?

【问题讨论】:

    标签: erlang tsung tsung-recorder


    【解决方案1】:

    如果您将浏览器连接到代理记录器并启动它,它应该会在您点击 api 时在必要时自动添加转换句柄。我不确定你的 API 为什么会失败。能再解释一下吗?

    【讨论】:

      【解决方案2】:

      如果我理解正确,您希望使用 url 作为 http://api.whatever.com 而不是 http://-api.whatever.com 。我不知道为什么,但是如果确实需要,您可以使用 Haproxy 之类的东西从 http://api.whatever.com 重定向到 http://-api.whatever.com

      【讨论】:

        猜你喜欢
        • 2016-09-03
        • 2019-03-18
        • 2016-03-27
        • 2012-10-11
        • 2013-07-05
        • 2015-11-10
        • 2018-08-31
        • 2019-03-13
        • 2017-08-28
        相关资源
        最近更新 更多