Add tests for destination rewrite
[privoxy.git] / tests / cts / rewrite-behind-client-back / rewrites.filter
1 CLIENT-HEADER-FILTER: http-to-https Upgrade http requests to https behind the client's back. Not actually supported.
2 s@^(\w+)\s+http://@$1 https://@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 http://$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