[ 
https://issues.apache.org/jira/browse/CALCITE-5534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17690925#comment-17690925
 ] 

Istvan Toth commented on CALCITE-5534:
--------------------------------------

If having the parameter exposed as an HTTP header is important (i.e. for a load 
balancer or similar proxy), then we could consider allowing adding free-form 
HTTP header lines.

My colleague is working on implementing bearer HTTP auth for Avatica, and being 
able to specify arbitrary full HTTP header(s) would have been the easiest route.

i.e something like

_jdbc:avatica:remote:url=remoteserver;extra_http_header=User-Agent: agent-info_
(with http encoding or some other escaping for the colon)

> Add `userAgent` JDBC param to Avatica
> -------------------------------------
>
>                 Key: CALCITE-5534
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5534
>             Project: Calcite
>          Issue Type: Improvement
>          Components: avatica
>            Reporter: TJ Banghart
>            Assignee: TJ Banghart
>            Priority: Minor
>
> It could be beneficial to add a {{userAgent}} parameter to the JDBC URL 
> recognized options. This {{userAgent}} value would be passed from the client 
> to server as a {{User-Agent}} HTTP header overriding Avatica's current 
> default of {{Apache-HttpClient/<version> (<java_version>)}}. This would allow 
> Avatica servers to more easily identify requesting applications.
> Here's [Denodo's {{userAgent}} 
> |https://community.denodo.com/docs/html/browse/6.0/vdp/administration/monitoring_the_virtual_dataport_server/monitoring_with_a_java_management_extensions_jmx_agent/setting_the_user_agent_of_an_application]
>  as an example.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to