Varnishtest client user agents

Dridi Boukelmoune dridi at varni.sh
Wed Jul 12 07:10:33 UTC 2023


On Wed, Jul 12, 2023 at 6:59 AM Poul-Henning Kamp <phk at phk.freebsd.dk> wrote:
>
> --------
> Dridi Boukelmoune writes:
> > On Wed, Jul 12, 2023 at 5:21=E2=80=AFAM Poul-Henning Kamp <phk at phk.freebsd.=
> > dk> wrote:
> > >
> > > --------
> > > Dridi Boukelmoune writes:
> > >
> > > > Would it be OK to have `client cNAME` send a `User-Agent: vtest
> > > > (cNAME)` or similar to reduce some of it?
> > >
> > > I generally just use /c1 /c2 etc in the URL ?
> >
> > That's part of the frustration, whenever I'm troubleshooting a test
> > case I have to jump through more hoops to get something useful. What I
> > would like is something out of the box, such as clients advertising
> > themselves in a User-Agent header.
>
> I would prefer you do not overload any Well Known Headers.
>
>         X-VTC: c1
>
> maybe ?

In the spirit of rfc6648 i would rather use a "VTC-" prefix, so
something more like

    VTC-Client: c1

But also, since a VTC client mocks a user agent, I would rather use
the standard header for this. We can also add a -noua option similar
to -nolen, -nohost and -nodate and imply -noua when an explicit `-hdr
"User-Agent: other"` is present.

Dridi


More information about the varnish-dev mailing list