Skip to content

Charles Proxy not properly detected on MacOS #150

@dadarakt

Description

@dadarakt

We used UnityWebRequest before but wanted to switch to BestHTTP for proper HTTP2 support.

With UnityWebRequest, we were able to proxy all requests through Charles' Proxy to inspect the outgoing request without any further setup.

After switching over to BestHTTP, it seems that it's bypassing the system's proxy settings.

We tried setting the global proxy manually, but then the TLS handshake fails.

The manual proxy setup:

HTTPManager.Proxy = new HTTPProxy(new Uri("http://localhost:8888"));

The stacktrace:

Can't resume session: StatusCode: 0, Message: user_canceled(90), Content: , StackTrace:  ...

Seen on the proxy:

user_canceled (90) - The handshake was canceled for some reason unrelated to a protocol failure

Is there any way to configure BestHTTP to use MacOS' system proxy setting?
Or at least understand why the manual proxy setup fails?

Thanks for your time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions