W3C home > Mailing lists > Public > public-xg-webid@w3.org > December 2011

Re: Redirects continued -- was: Problem with certificate on home-grown WebID

From: Henry Story <henry.story@bblfish.net>
Date: Thu, 22 Dec 2011 03:10:49 +0100
Cc: Sebastian Trüg <sebastian@trueg.de>, public-xg-webid XG <public-xg-webid@w3.org>, Carvalho Melvin <melvincarvalho@gmail.com>, "foaf-protocols@lists.foaf-project.org" <foaf-protocols@lists.foaf-project.org>
Message-Id: <4B6FE2D4-472E-45A3-A07F-94C201330A22@bblfish.net>
To: Pierre-Antoine Champin <pierre-antoine.champin@liris.cnrs.fr>
Ok. Your problem should be fixed now. It turns out that the culprit was not redirects, which the apache
library I used does by default, but that I was misinterpreting your mime type.

    2.19 -            case Some(mime) => Lang(mime) getOrElse Lang.default
    2.20 +            case Some(mime) => {
    2.21 +              Lang(mime.split(";")(0)) getOrElse Lang.default
    2.22 +            }

I had to split after the ";" so that Jena could know the right mime type to interpret
the content.

Henry

On 21 Dec 2011, at 18:20, Pierre-Antoine Champin wrote:

> On 12/21/2011 05:19 PM, Henry Story wrote:
>> 
>> On 21 Dec 2011, at 16:57, Pierre-Antoine Champin wrote:
>> 
>>> Hi,
>>> 
>>> I had the same misunderstanding as Sebastian, creating WebID
>>> http://champin.net/pa
>>> 
>>> I now created
>>> http://champin.net/#pa
>>> (which I too prefer, btw).
>>> 
>>> But that one does not work with foafssl.org :-(
>> 
>> That's because at present it does not have redirection implemented and you resource redirects
>> 
>> $ curl -i  http://champin.net/ 
>> HTTP/1.0 302 Found
>> Server: BaseHTTP/0.3 Python/2.5.2
>> Date: Wed, 21 Dec 2011 16:15:10 GMT
>> Location: http://liris.cnrs.fr/~pchampin/
>> Content-type: text/html
>> Vary: Host
> 
> 
> I beg to differ: http://champin.net/pa redirected as well, and it worked
> (and still does)!

Social Web Architect
http://bblfish.net/
Received on Thursday, 22 December 2011 02:11:23 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 December 2011 02:11:25 GMT