vcl_hash: hash post content ?

kokoniimasu kokoniimasu at gmail.com
Mon Aug 27 16:37:50 CEST 2012


Hi, Jérôme.

VCL can't access the POST data.
But, VMOD can do it.

--vmod-parsereq
  https://github.com/xcir/libvmod-parsereq

--vcl
import parsereq;

sub vcl_recv{
  parsereq.init();
}

sub vcl_hash{
  hash_data(parsereq.post_header("hogehoge"));
}


Hope this helps,
--
Syohei Tanaka(@xcir)
http://xcir.net/

(:3[__])

2012/8/27 Jérôme Loyet <ml at fatbsd.com>:
> Hello varnish-misc,
>
> I want to cache POST requests and add the post content to the hash in
> vcl_hash: is it possible with varnish 3 ?
>
> Thanks for the answer.
>
> ++ Jerome
>
> _______________________________________________
> varnish-misc mailing list
> varnish-misc at varnish-cache.org
> https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc



More information about the varnish-misc mailing list