Quantcast
Channel: HAProxy community - Latest topics
Viewing all articles
Browse latest Browse all 4720

Best way to get request header

$
0
0

Hello, guys

Browsing the internet, I’ve found few ways to get header value:

  1. txn.f:hdr(“x-forwarded-for”)
  2. txn.f:req_fhdr(“x-forwarded-for”)
  3. txn.http:req_get_headers()[“x-forwarded-for”][0]

Do you maybe know why there are so many ways and what the difference is? Which one is preferrable?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4720

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>