Set UserAgent string for TTRSS Mobile Client

Request new functionality here
frew
I Can't Search Before Posting
Posts: 5
Joined: 17 Jun 2013, 03:18

Set UserAgent string for TTRSS Mobile Client

Postby frew » 23 May 2016, 00:56

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.

User avatar
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

Postby fox » 23 May 2016, 07:27

why?

joeyteel
Bear Rating Trainee
Bear Rating Trainee
Posts: 7
Joined: 17 Aug 2014, 11:52

Re: Set UserAgent string for TTRSS Mobile Client

Postby joeyteel » 23 May 2016, 08:42

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:

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.8) 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.

User avatar
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

Postby fox » 23 May 2016, 09:03

i'm sorry but none of this sounds compelling enough for me to start android studio and edit this in

so, no.

frew
I Can't Search Before Posting
Posts: 5
Joined: 17 Jun 2013, 03:18

Re: Set UserAgent string for TTRSS Mobile Client

Postby frew » 23 May 2016, 16:57

Ah ok. I figured you'd just need to add a line to ApiRequest.java that would look something like,

Code: Select all

conn.setRequestProperty("User-Agent", "TTRSS/" + VERSION);


Didn't realize it was such a hassle.


Return to “Feature requests”

Who is online

Users browsing this forum: No registered users and 1 guest