user-agent on android app

This forum is about all development around libVLC.
machine666
New Cone
New Cone
Posts: 2
Joined: 28 Jan 2018 01:36

user-agent on android app

Postby machine666 » 28 Jan 2018 01:42

hello everybody. i wonder if it's possible to fully customize the user-agent. reading the documentation there's a method called setUserAgent() but it always appends LibVLC/3.0.0-git at the end. which is problematic to me beacuse server side expects an exact user agent.

for example if i do:

Code: Select all

libvlc.setUserAgent("my_custom_user_agent","my_custom_user_agent");
it send to http server:

Code: Select all

User-Agent: my_custom_user_agent LibVLC/3.0.0-git
any help would be greatly appreciated.

Thanks in advance

Rémi Denis-Courmont
Developer
Developer
Posts: 15266
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: user-agent on android app

Postby Rémi Denis-Courmont » 28 Jan 2018 09:45

This is as per the syntax definition of the User-Agent line in the HTTP specifications, and many frameworks operate the same way. Fix your server.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 22 guests