> On Feb 6, 2017, at Feb 6, 4:24 PM, Andrew Kroenert > <[email protected]> wrote: > > Hey Guys > > Quick one, Can anyone confirm any difference between the following header > manipulations in haproxy
Well, they’re very different … the first alters the response and the second alters the request. If your haproxy version supports the http-request / http-response methods, those should probably be preferred over the older rspadd / reqadd which are kept for backwards compatibility. > > 1. > rspadd Server:\ Test This adds a “Server: Test” header line to the response sent by the server before forwarding to the client. https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#rspadd <https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#rspadd> > > 2. > http-request add-header Server Test > This adds a “Server: Test” header line request sent by the client before forwarding to the server. https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-http-request <https://cbonte.github.io/haproxy-dconv/1.7/configuration.html#4.2-http-request> -Bryan

