[Privoxy-users] Configure privoxy to proxy all requests to the same web page

Fabian Keil fk at fabiankeil.de
Thu Nov 11 11:01:56 UTC 2021


Steven Smith <steve.t.smith at gmail.com> wrote on 2021-09-27:

> I’ve set match-all.action to:
> 
> > { \                                                                             
> > +redirect{http://localhost:8119/} \                                             
> > }                                                                               
> > / # Match all URLs                                                              
> 
> 
> 
> This works as expected for HTTP:
> 
> > curl -I -L --proxy http://localhost:8118 http://whatever.com/
> 
> This problem is with HTTPS:
> 
> > curl -I -L --proxy-insecure --proxy http://localhost:8118 <http://localhost:8118/> https://google.com/?q=foobar

I assume the "<http://localhost:8118/>" is the result of
Mailman trying to convert HTML to text?

> > HTTP/1.1 302 Local Redirect from Privoxy
> > Location: http://localhost:8119/
> > Content-Length: 0
> > Date: Mon, 27 Sep 2021 17:47:49 GMT
> > Connection: close
> > 
> > curl: (56) Received HTTP code 302 from proxy after CONNECT

Note that the use of "--proxy-insecure" is pointless as
the connection between curl and Privoxy is not actually
encrypted until the CONNECT request has been answered.

Having said that, the command:

curl -I -L --proxy-insecure --proxy http://privoxy-jail:8118  https://google.com/?q=foobar

seems to work as expected for me
using curl 7.79.1 and Privoxy 3.0.33 build from git on
ElectroBSD 12.3-STABLE d61efdec91d1.

If you can still reproduce the issue, please add "--trace -"
to the curl command.

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/20211111/b382c3c0/attachment.bin>


More information about the Privoxy-users mailing list