Currently the android client seems to leave the UA string to be whatever the default is in the library. So my phone uses the string:
Dalvik/2.1.0 (Linux; U; Android 6.0.1; A0001 Build/XXX)
Is there any chance we could replace the first part with, say, TinyTinyRSS/1.177?
Thanks.
Set UserAgent string for TTRSS Mobile Client
Re: Set UserAgent string for TTRSS Mobile Client
Well it's good for properly identifying it properly if you care about access statistics based on the client. That's about the only real reason I can personally think of in this case.
Of course there's always the HTTP RFC which has this say about it:
Of course there's always the HTTP RFC which has this say about it:
14.43 User-Agent
The User-Agent request-header field contains information about the user agent originating the request. This is for statistical purposes, the tracing of protocol violations, and automated recognition of user agents for the sake of tailoring responses to avoid particular user agent limitations. User agents SHOULD include this field with requests. The field can contain multiple product tokens (section 3. and comments identifying the agent and any subproducts which form a significant part of the user agent. By convention, the product tokens are listed in order of their significance for identifying the application.
- fox
- ^ me reading your posts ^
- Posts: 6318
- Joined: 27 Aug 2005, 22:53
- Location: Saint-Petersburg, Russia
- Contact:
Re: Set UserAgent string for TTRSS Mobile Client
i'm sorry but none of this sounds compelling enough for me to start android studio and edit this in
so, no.
so, no.
Re: Set UserAgent string for TTRSS Mobile Client
Ah ok. I figured you'd just need to add a line to ApiRequest.java that would look something like,
Didn't realize it was such a hassle.
Code: Select all
conn.setRequestProperty("User-Agent", "TTRSS/" + VERSION);
Didn't realize it was such a hassle.
Who is online
Users browsing this forum: No registered users and 1 guest