Re: WebSocket in Privoxy

Fabian Keil <[email protected]> Tue, 21 Mar 2023 07:37:26 +0100
Newsgroups gmane.comp.web.privoxy.user
Message-ID <[email protected]>
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>

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

iQIzBAEBCAAdFiEETzbBfzgWkTZUoehQaRgikYuiNxwFAmQZUKcACgkQaRgikYui
Nxx5OBAAp2hE41E7R78h6TQXZvpmjBUP7RFCzsjN/554YdYJgt5uBJyhsDifMANM
JGLO0E4/0K+KzKiX3RZdBbqyaN0LbWo/tGJ1Ii/SzN3Bdx3pZM24+ZtFSnDJ/Rtv
1Njg0+Ap+ZjJl0F1QurP2yy6utJimMPJ5YzPQPBe9TxyDoPg0OIp5VbA+cZP/myA
sbbdHEn9Zed5b3/uvm4eqh0EzcmZ87B52z+BL+v+xgCqy6pbW+cLUUVPMMY2vdjf
bGJnWCLD3p2VNNp9VyPm6SkfPpfQw9u3qniBUs5kjZvzRATRLTONbyBNZYLx6/O/
nkk9XIKRLnmFStUDDnREz5tftBKS/evD+L3U15m4MGF0QK3oKLHDsHvXyaw5S6wW
AGdi8WhRQwf4NrTgbrgm5mNoVb5dhGG5lWqk7inngp9oAlXv54AC7Ys4EbCNICeJ
cKpS8d9mFp2jrQpuXKsu+RnXqKnLdRNU97Nvqn3Vnu/LKIi7qMohKl6Z5pvvdTBJ
IoZvpkp1p1IMln0BHRIeFoGPKFy0QJHAFd6elwialwmwPqZeV/Uf162dcknIRKwp
qx9KLRdLRFLppy4S3Erxv3r6ej/SeimlsSwffOyMnK0sSCYMjWWx6sU1l6k0kB3M
Sbx4gLlZpnwsRDUvxwnbRQkXTjwOuy2xG3M33IIyzYZu6JiUpWw=
=8kvV
-----END PGP SIGNATURE-----