[Privoxy-users] rewriting the Host header, switching protocols
Fabian Keil
fk at fabiankeil.de
Thu Mar 23 08:54:48 CET 2023
Madhu <enometh at meer.net> wrote on 2023-03-23 at 09:55:27:
> Hello, thanks for publishing privoxy. There are two strange scenarios
> that have cropped up (don't ask why)
>
> 1. To rewrite the Host: header of a forwarded request to a target
> webserver (based on certain criteria)
This is supported and can be done with a client-header filter:
https://www.privoxy.org/user-manual/actions-file.html#CLIENT-HEADER-FILTER
You can use tags or URL patterns to decide when to apply the filter.
> 2. To switch the protocol from HTTPS to HTTP when forwarding a request
> to another proxy (typically local, again based on certain criteria)
This can be done by rewriting the protocol in the URL
in the request line with a client-header filter.
Upgrading from HTTP to HTTPS is currently unsupported, though.
Fabian
-------------- 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/20230323/4c683648/attachment.bin>
More information about the Privoxy-users
mailing list