Re: WebSocket in Privoxy

Marek Küthe <[email protected]> Tue, 21 Mar 2023 12:48:19 +0100
Newsgroups gmane.comp.web.privoxy.user
Message-ID <20230321124819.3dd39df1@parrot>
Why should Firefox use `CONNECT`? Isn't the WebSocket handshake
performed with a `GET`?

On Tue, 21 Mar 2023 07:37:26 +0100
Fabian Keil <[email protected]> wrote:

> Marek Küthe <[email protected]> wrote on 2023-03-20 at 21:48:11:
> 
> > I am trying to use a web application which uses WebSockets. As a
> > browser I use Firefox ESR. Privoxy is running locally on my computer
> > and Firefox is set to send requests to Privoxy. Now I have tried
> > something around and found that the web application works without
> > problems if no proxy is configured. When Privoxy is configured, it
> > stops at `Connection is being established.`. Then after some time the
> > web application sometimes reports WebSocket error `1006` (no error
> > text). The web application does not use HTTPS / TLS and therefore
> > `ws://` and not `wss://`. Firefox itself outputs `Firefox cannot
> > connect to the server at ws://lg.reseau.mk16.de/ws.` in the developer
> > console.
> > 
> > Is this due to Privoxy? If yes, is there a workaround? Is it possible
> > to forward WebSocket connections one-to-one or similar?
> > 
> > I hope I am right here at the Mailling list. I would be glad about an
> > answer!  
> 
> Which Privoxy version do you use?
> 
> Please provide a log excerpt created with the debug settings
> listed at [0] that shows the problems.
> 
> To create a WebSocket through Privoxy, Firefox should use
> a CONNECT request to open a tunnel. If Privoxy isn't configured
> to block or intercept this, this is expected to work.
> 
> We currently have not tests for WebSockets, though, so it's
> conceivable that there is a regression.
> 
> Fabian
> 
> [0] <https://www.privoxy.org/user-manual/contact.html>


-- 
Marek Küthe
[email protected]
er/ihm he/him

_______________________________________________
Privoxy-users mailing list
[email protected]
https://lists.privoxy.org/mailman/listinfo/privoxy-users
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEmqKBWfzrPNg7whIBfoaRRmmRCMcFAmQZmYMACgkQfoaRRmmR
CMeYBBAAqpTSLdYjnk8YF9Kg7hP1Gb0qDe+2eap1oNcwqEjgnUMJEWijCmZQYmZO
rDDoayA6REqwRHKQahtzOap/ZjoLFF/pjRu0wwULoH9tUz8nYqXRDqiFDz1CTN9r
OHQrAAOxK6XV/UFD8I5WfPc+aFePvqh1Dw8xodfTkaJJxmyTWhVeoxVoVdAc62fW
LhEpJ1NXCPN+tHAmND7fAKTsvsWKdpFudCeLw9WA4ehgSkCPAD0oPjKDtWb4xsG1
WdLGVGFlIYeEYuy1bSgmfmMAl6bcmHwLM9exZngPnUIM/1lVIqaQtfHlj4Jv25u+
ltU2kHhy3jkV7O7VyLI7sU03sxcHpQdvIYjTpM0c66Y3HOqfZs2U6WvGoZ1wjEZz
EGZ6hj5wD31ub78wWq8uxG13DehAz6TZD/RP5V77L7j1VQBKn6cC9Xk/0N85Q0GW
WR5mghPLbWvtOhDX6or0UgzPQmUIBF688No4+GZuLNCkpDoSjdgzazRYxy/4jBQp
xC9+Rp32gpfGkNcVNgQXzr33tW8bfIM5Bo3wUDA+NpUmna+zbqLt9p+F4b2bnfmC
/mxNamETGT2sj6JApMXF+z9m3+XHlSewIPFPNGhzkq5qVPH8DR/t8fiXr2k/zTRE
6QpjiuSBSmDpD4dwYvPEiu+NZtqdAC6D27/Vrm4LhCOQceaIdP4=
=Us/Q
-----END PGP SIGNATURE-----