how to create variables

Tobias Eichelbrönner tobias.eichelbroenner at lamp-solutions.de
Wed May 23 14:52:58 CEST 2012


Hi,

> "How can I create string variables in the default.vcl file... Is it
> possible to create variables and then use them.."

you can store informationen in the http-header

in vcl:
req.http.X-Variable = "value";

and in inline c
VRT_GetHdr(sp, HDR_REQ, "\013X-Variable:")

VRT_SetHdr(sp, HDR_REQ, "\013X-Variable:", "value", vrt_magic_string_end);

Sincerely



More information about the varnish-misc mailing list