[prev in list] [next in list] [prev in thread] [next in thread]
List: privoxy-users
Subject: Re: [privoxy-users] Variables from the URL
From: Fabian Keil <fk () fabiankeil ! de>
Date: 2008-05-01 15:46:00
Message-ID: 20080501174600.0e44046e () fabiankeil ! de
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
"drpr0ctologist@gmail.com" <drpr0ctologist@gmail.com> wrote:
> Is it possible to store and get parts of the URL as a variable? For instance
> I want to take part of the URL and use it as part of the header passed back.
>
> So for instance, if I go to the URL http://www.example.org, I'd like to pass
> the header "spam@example.org" using the "+hide-from-header" configuration
> directive.
I don't think that's a good idea. Anyway ...
The hide-from-header action doesn't support variables,
however dynamic filters support a few fixed variables.
Quoting default.filter:
# Note2: In addition to the Perl options gimsx, the following nonstandard
# options are supported:
[...]
# 'D' (Dynamic) allows the use of variables. Supported variables are:
# $host, $origin (the IP address the request came from), $path and $url.
#
# Note that '$' is a bad choice as delimiter for dynamic filters as you
# might end up with unintended variables if you use a variable name
# directly after the delimiter. Variables will be resolved without
# escaping anything, therefore you also have to be careful not to chose
# delimiters that appear in the replacement text. For example '<' should
# be save, while '?' will sooner or later cause conflicts with $url.
You should be able to do what you want with a custom client-header
filter that first includes $url and later on removes parts of it again.
Fabian
["signature.asc" (application/pgp-signature)]
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ijbswa-users mailing list
Ijbswa-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ijbswa-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic