[Annozilla] "GET" parameters in URL
Pierre LINDENBAUM
plindenbaum at yahoo.fr
Tue Jan 31 17:37:15 EST 2006
Hi all,
1) I've tried to use anozilla 0.6.3/ firefox 1.5 with
the
W3C test server. It seems that when I want to insert a
comment about a URL with "GET" parameters (such as :
"http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&db=pubmed&dopt=Abstract&list_uids=3954702&query_hl=3&itool=pubmed_docsum")
it ignores all the parameters and inserts my comment
for "http://www.ncbi.nlm.nih.gov/entrez/query.fcgi".
Is it a normal behavior ?
2) I created an annotea server as a java Servlet. When
I want to add a comment, the message returned to the
client is:
(...)
protected void doPost(HttpServletRequest req,
HttpServletResponse res) throws ServletException,
IOException
{
(...)
String msg="<?xml version=\"1.0\" ?>\n" +
"<r:RDF xmlns:r=\""+RDF+"\"\n" +
" xmlns:a=\""+AN+"\"\n" +
" xmlns:d=\""+DC+"\">\n" +
" <r:Description r:about=\""+
getBaseURL(req)+"/"+toMD5(context)
+"\">\n" +
" <a:annotates
r:resource=\""+escape(context)+"\"/>\n" +
" <a:body
r:resource=\""+getBaseURL(req)+"/body/"+toMD5(context)
+"\"/>\n" +
" </r:Description> \n" +
"</r:RDF>\n";
res.setStatus(HttpServletResponse.SC_CREATED);
res.setHeader("Location",getBaseURL(req)+"/"+toMD5(context));
res.setContentType("application/xml");
res.setContentLength(msg.length());
PrintWriter out= res.getWriter();
out.print(msg);
out.flush();
}
Evreything goes fine on the server side, it sends this
RDF/XML answer, but annozilla said "Annozilla was
unable to post the annotation. Unable to create an
annotation ..."
Any idea ?
Thanks for your help
Pierre L
___________________________________________________________________________
Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
Téléchargez sur http://fr.messenger.yahoo.com
More information about the Annozilla
mailing list