util::log_user_agent (private)
util::log_user_agent value
Defined in packages/acs-tcl/tcl/utilities-procs.tcl
Format a User-Agent for single-line request diagnostics. Bound the input to 1024 characters and URL-encode it using the configured default encoding.
- Parameters:
- value (required)
- Client-supplied User-Agent header.
- Returns:
- URL-encoded value followed by an explicit truncation flag.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- log_user_agent
Source code: set truncated [expr {[string length $value] > 1024}] set value [string range $value 0 1023] return "[ns_urlencode -- $value] user_agent_truncated $truncated"XQL Not present: PostgreSQL, Oracle Generic XQL file: packages/acs-tcl/tcl/utilities-procs.xql