Add tests for rewrite behind the client's back with https
[privoxy.git] / tests / cts / rewrite-behind-client-back-https / rewrites.filter
1 CLIENT-HEADER-FILTER: https-to-http Downgrade protocol to http
2 s@^(\w+) (/\d-downgrade-to-http)-(\d+\.\d+\.\d+\.\d+\:\d+)@$1 http://$3$2@i
3
4 CLIENT-HEADER-FILTER: truncate-path Removes '-remove-this' from the path
5 s@(/\d)-remove-this (HTTP/1.1)@$1 $2@i
6
7 CLIENT-HEADER-FILTER: rewrite-host Replaces the host with the one specified in the path
8 s@GET /(\d)-(\d+\.\d+\.\d+\.\d+\:\d+) (HTTP/1.1)@GET https://$2/$1 $3@i
9
10 # Results in Conditional jump or move depends on uninitialised value(s)?
11 CLIENT-HEADER-FILTER: non-matching-rewriter Does not actually match
12 s@/-@@
13
14 CLIENT-HEADER-FILTER: invalid-http-version Rewrites the request line with an invalid HTTP version
15 s@HTTP/1.1@HTTP/9000@
16