How to pass request body using Varnish fetch?

jon.gilbert at jon.gilbert at
Mon Sep 12 19:27:12 CEST 2011

Is it possible that this is currently *not* possible? (ANY feedback welcome ;)
In the FAQs it says that "In 2.0 and later, pass will handle the request body correctly". So someone has implemented passing the request body - is there anyone on the list that can put in a feature request, that this also be done for fetch mode? Didn't find it in trac :( 
Possible alternative: is there any way to cache calls made in pass mode?

"jon.gilbert at" <jon.gilbert at> hat am 12. September 2011 um 10:07 geschrieben:

> Hi! 
> I'm afraid I am fairly new to varnish but I have a problem whch I cannot find a solution to anywhere (yet): Varnish is set up to cache GET requests. We have some requests which have so many parameters that we decided to pass them in the body of the request. This works fine when we bypass Varnish but when we go through Varnish (for caching), the request is passed on without the body, so the service behind Varnish fails.
> I know we could use POST, but we want to GET data. I also know that Varnish CAN pass the request body on if we use pass mode but as far as I can see, requests made in pass mode aren't cached. I've already put a hash into the url so that when things work, we will actually get the correct data from cache (as far as the url goes the calls would otherwise all look to be the same).
> The problem now is "just" how to rewrite vcl_fetch to pass on the request body to the webserver? Any hints and tips welcome!
> Thanks in advance
> Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the varnish-misc mailing list