ProxymanApp / ProxymanApp/Proxyman

WebSocket error during handshake when using Proxyman

Open
#1,635 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Description

I am debugging an Android app which opens a webview, and the webview initiates a websocket connection. I have no control over the webview or the websocket connection code.

The webview is able to send parsed messages from websocket to native android code. I'd like to be able to modify this response using map remote to a locally hosted websocket server.

When I open the webview in chrome's inspector, the following happens

  • If Proxy is enabled and SSL Proxy for the domain is enabled, Chrome report an error Error during WebSocket handshake: 'Sec-WebSocket-Protocol' header must not appear more than once in a response but the headers in Proxyman seem to be fine.
  • If Proxy is disabled and SSL Proxy for the domain is disabled, chrome reports a successful connection and starts receiving messages in the websocket connection.

Environment

  • Websocket uses STOMP protocol for message exchange.
  • App version: Proxyman 4.7.1
  • macOS version: macOS Ventura 13.3.1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source files or tests are named. Start by reproducing the SSL-proxied WebSocket handshake with the Android WebView, STOMP connection, and Map Remote setup described here; done means the handshake succeeds without a duplicate Sec-WebSocket-Protocol header and messages can be modified through the local WebSocket server.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, macos
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.