[jsword-devel] HttpURLConnection - HttpClient

Chris Burrell chris at burrell.me.uk
Tue Jul 7 10:13:48 MST 2015


Odd. Didn't upgrade the jvm or jsword... Happy to make changes to step once
there is a way to provide a name for the app name. Jsword could probably
obtain process name internally and would apply to all in one sweep. That's
probably safest?

On 7 July 2015 at 17:23, DM Smith <dmsmith at crosswire.org> wrote:

> It is new. It wasn’t seen in last month’s logs.
> — DM
>
> On Jul 7, 2015, at 10:58 AM, Chris Burrell <chris at burrell.me.uk> wrote:
>
> According to my own access logs, I can say that STEP uses the following:
>
> "Apache-HttpClient/4.3.2 (java 1.5)"
>
> Was yours a typo? or is this a new one?
>
> Cheers
> Chris
>
>
> On 7 July 2015 at 15:38, DM Smith <dmsmith at crosswire.org> wrote:
>
>> Here is how JSword shows up in the HTTP logs:
>> The different lines represent different releases of JSword combined with
>> different versions of Java.
>> Apache-HttpClient/UNAVAILABLE (java 1.5)
>> Apache-HttpClient/UNAVAILABLE (java 1.4)
>> Jakarta Commons-HttpClient/3.1
>> Apache-HttpClient/4.2.3 (java 1.5)
>> Jakarta Commons-HttpClient/3.0.1
>> These are ordered by frequency from the most frequent to the least. I’m
>> looking to see if there are others.
>>
>> Can we figure out which of these are AndBible code? BibleDesktop?
>> AlKitab? STeP?
>>
>> What’s with java 1.4 still being used?
>>
>> At a minimum I’d like this User Agent to also include the application
>> name (E.g. RipOff XYZ), the code base (AndBible, BibleDesktop, AlKitab,
>> STeP), the code base version number. And anything else that might be
>> interesting.
>>
>> Currently Xiphos and PocketSword identify themselves and include the
>> version number.
>>
>> — DM
>>
>>
>> On Jul 4, 2015, at 2:52 PM, DM Smith <dmsmith at crosswire.org> wrote:
>>
>> I was hoping that an Android app can get the name of the application as
>> displayed to the end user. And that it can be used. That way a ripoff would
>> be identified as they typically change the name and add advertising.
>>
>> — DM
>>
>>
>> On Jul 4, 2015, at 2:49 PM, Chris Burrell <christopher.burrell at gmail.com>
>> wrote:
>>
>> Don t rip offs take all if the same code? Unless you provide it at
>> compile time, which just makes it slightly trickier to get to it, but
>> ultimately it a still there... What were you thinking?
>> ------------------------------
>> From: DM Smith <dmsmith at crosswire.org>
>> Sent: ‎04/‎07/‎2015 19:45
>> To: chris at burrell.me.uk; J-Sword Developers Mailing List
>> <jsword-devel at crosswire.org>
>> Subject: Re: [jsword-devel] HttpURLConnection - HttpClient
>>
>> Regarding agent, I’d like to have it pick up the Application name, such
>> that a rip-off’s replacement of AndBible will result in the ripoff’s name
>> being in the agent string.
>>
>> — DM
>>
>> On Jul 4, 2015, at 1:29 PM, Chris Burrell <chris at burrell.me.uk> wrote:
>>
>> With Java, I think you simply set the http.agent property at a System
>> level.
>>
>> We already have a CWProject.setFrontendName() that could be used to
>> obtain the frontend's identity, though presumably that would be mostly
>> empty.
>>
>> Chris
>>
>>
>> On 4 July 2015 at 17:41, DM Smith <dmsmith at crosswire.org> wrote:
>>
>>> If we can do it without disruption to desktop apps, i.e. non-Android,
>>> I’m fine with changing to something different. I’d be happy to test it in
>>> BibleDesktop.
>>> Do you know if they have FTP support as well. I’m nearly done with
>>> adding SWORD style FTP support.
>>>
>>> Also, I’d like to suggest that we figure out how to modify the User
>>> Agent of the request to indicate the application name. We’d like to
>>> quantify the downloads by app and perhaps the version of the app.
>>>
>>> — DM
>>>
>>> On Jul 4, 2015, at 9:10 AM, Martin Denham <mjdenham at gmail.com> wrote:
>>>
>>> Does anybody have any thoughts or considerations regarding the use of
>>> HttpClient by JSword as opposed to the use of HttpURLConnection?
>>>
>>> Recently I investigated the use of And Bible on Chrome using ARC Welder
>>> <https://chrome.google.com/webstore/detail/arc-welder/emfinbmielocnlhgmfkkmkngdoccbadn>
>>> and discovered that Apache HttpClient is currently incompatible with
>>> Chromium (see issue
>>> <https://code.google.com/p/chromium/issues/detail?id=384940>) .  Then I
>>> also stumbled over this recommendation by Google
>>> <http://developer.android.com/training/basics/network-ops/connecting.html#http-client>
>>> to use HttpURLConnection on Android rather than other http clients.
>>>
>>> I realise Android is just one of many OSs that JSword runs on but
>>> wondered what thoughts people might have regarding the use of this library
>>> as opposed to HttpURLConnection.
>>>
>>> Cheers
>>> Martin
>>> _______________________________________________
>>> jsword-devel mailing list
>>> jsword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/jsword-devel
>>>
>>>
>>>
>>> _______________________________________________
>>> jsword-devel mailing list
>>> jsword-devel at crosswire.org
>>> http://www.crosswire.org/mailman/listinfo/jsword-devel
>>>
>>>
>> _______________________________________________
>> jsword-devel mailing list
>> jsword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/jsword-devel
>>
>>
>>
>>
>>
>> _______________________________________________
>> jsword-devel mailing list
>> jsword-devel at crosswire.org
>> http://www.crosswire.org/mailman/listinfo/jsword-devel
>>
>>
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/jsword-devel
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20150707/62ba61e9/attachment.html>


More information about the jsword-devel mailing list