[Privoxy-users] WebSocket in Privoxy
Marek Küthe
m-k-mailling-list at mk16.de
Tue Mar 21 12:48:19 CET 2023
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 <fk at fabiankeil.de> wrote:
> Marek Küthe <m-k-mailling-list at mk16.de> 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
m.k at mk16.de
er/ihm he/him
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-users/attachments/20230321/f3bf8e16/attachment.bin>
More information about the Privoxy-users
mailing list