adding header question

Eran Sandler eran at sandler.co.il
Tue Feb 23 16:27:32 CET 2010


Thanks. I'll give it a shot and see how it goes.

Eran

On Tue, Feb 23, 2010 at 10:19 AM, Poul-Henning Kamp <phk at phk.freebsd.dk>wrote:

> In message <e6b3e5a61002210221q42a5f6a4v90b595c81a6eaf5b at mail.gmail.com>,
> Eran
> Sandler writes:
>
> >I tried setting the header in vcl_recv (set req.http.MyHeader = "1";),
> >[...] but it doesn't seem to get sent to the backend.
>
> That should work.
>
> Try running varnishlog, and keep an eye on the "TxHeader" lines, which
> show what is sent to the backend.
>
> You can also enable the vcl_trace parameter, which will put records
> into the varnishlog, with line+char_pos of the VCL as it is executed.
>
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk at FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetence.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-dev/attachments/20100223/c407b80f/attachment-0002.html>


More information about the varnish-dev mailing list