Re: HTTP response code: 403 when accessing LoC MODS and DC conversion stylesheets

From: Jean-Claude Dauphin <jc.dauphin_at_nyob>
Date: Mon, 12 Dec 2016 22:26:23 +0100
To: CODE4LIB_at_LISTS.CLIR.ORG
Thanks David for suggesting this solution.

I finally find out a Java solution for the J-ISIS application that doesn't
need any code change:

The http user agent string can be set globally with a JVM parameter:

you neeed to add -J-Dhttp.agent=\"Mozilla/5.0 (Windows NT 10.0; WOW64;
rv:50.0) Gecko/20100101 Firefox/50.0\" to the command line switches.

Adding this parameter allows to access the LoC stylesheets without getting
the http 403 error.

Best wishes,

Jean-Claude
PS) Sorry the previous message was sent by error

On Mon, Dec 12, 2016 at 9:48 PM, Cliff, David <d.cliff_at_northeastern.edu>
wrote:

> Hey Jean-Claude,
>
> One solution would be an XML Catalog, although I’m unsure if that would
> work with Xalan – an alternative would be to write the Java equivalent of
> Kataba - https://github.com/dgcliff/kataba
>
> On 12/5/16, 12:46 PM, "Code for Libraries on behalf of Jean-Claude
> Dauphin" <CODE4LIB_at_LISTS.CLIR.ORG on behalf of jc.dauphin_at_GMAIL.COM>
> wrote:
>
>     Jean-Claude
>
>


-- 
Jean-Claude Dauphin

jc.dauphin_at_gmail.com
jc.dauphin_at_afus.unesco.org

http://kenai.com/projects/j-isis/
http://www.unesco.org/isis/
http://www.unesco.org/idams/
http://www.greenstone.org
Received on Mon Dec 12 2016 - 16:27:29 EST