2

In Squid config, is there any variable - %VAR - that contains the current unique request id or anything similar?

I'll need to pass that into an external script, for instance:

# squi.conf
auth_param basic program %REQUEST_ID(???) /etc/squid/my_auth.py

This may not be an authentication script, this is just an example.

I've searched but haven't found anything about it.

top 2 comments
sorted by: hot top controversial new old
[-] colonelp4nic@lemmy.world 1 points 5 months ago

Generally unique request IDs have to be generated by the client that sends the request. If the client doesn't generate an ID, you're probably out of luck. That said, do you have information about the client you're expecting to call your Squid cache? One unofficial, but common place for clients to put a request ID is in the header "X-Request-ID"

[-] maximalian@sopuli.xyz 2 points 4 months ago
this post was submitted on 10 Jun 2024
2 points (60.0% liked)

Programming

17342 readers
252 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS