[jsword-devel] HttpURLConnection - HttpClient

DM Smith dmsmith at crosswire.org
Sat Jul 4 11:45:47 MST 2015


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 <mailto: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 <mailto: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 <mailto:jsword-devel at crosswire.org>
>> http://www.crosswire.org/mailman/listinfo/jsword-devel <http://www.crosswire.org/mailman/listinfo/jsword-devel>
> 
> 
> _______________________________________________
> jsword-devel mailing list
> jsword-devel at crosswire.org <mailto:jsword-devel at crosswire.org>
> http://www.crosswire.org/mailman/listinfo/jsword-devel <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/20150704/36bf6c00/attachment-0001.html>


More information about the jsword-devel mailing list