View Single Post
Old 09-23-2014, 02:46 AM   #12
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,504
Karma: 8065348
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
FWIW: calibre companion is a native android app and it uses digest authentication and ajax. All we needed to do was set up the correct security environment in the http connection.
Code:
		// Set up authentication. Try digest before basic
		List<String> authpref = new ArrayList<String>();
		authpref.add(AuthPolicy.DIGEST);
		authpref.add(AuthPolicy.BASIC);
		httpClient.getParams().setParameter(AuthPNames.TARGET_AUTH_PREF, authpref);
Of course, if you do not have access to the underlying http connection then this scheme will not work.
chaley is offline   Reply With Quote