Kodi Community Forum
User-agent as normal query parameter - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: User-agent as normal query parameter (/showthread.php?tid=376502)



User-agent as normal query parameter - milkaca - 2024-03-02

I just have a question about user-agent. Is it possible to have user-agent specified as normal url parameter? Like this: http[s]://[host[:port]/directory/file?user-agent=b

The thing is that using it in this way: http[s]://[host[:port]/directory/file|user-agent=b

Is causing issues in other programs I am using and my video files are not working, because this is not a standard URL formatting.

Would be amazing, if both formatting is supported.

Thank you.


RE: User-agent as normal query parameter - izprtxqkft - 2024-03-02

no, that behavior comes from the cURL module that is compiled with Kodi

the cURL module is not written or modified by Kodi in the slightest so changing the behavior would require Kodi to keep a modified version which then needs to be maintained by someone

the effort required to make your 1 program work doesn't warrant a custom library that will be used by millions


RE: User-agent as normal query parameter - scott967 - 2024-03-04

Field data such as user-agent is not part of the URI semantics for optional query string.  It is defined as part of the header data that is passed to negotiate the http semantics between client and server.

scott s.
.