ws-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Danny Angus" <>
Subject Fwd: Can't send BASIC Auth to Tomcat
Date Mon, 08 May 2006 16:05:59 GMT
this issue could be resolved if you reopen this issue:

---------- Forwarded message ----------
From: Brian Williams <>
Date: 07-Mar-2006 03:51
Subject: Can't send BASIC Auth to Tomcat

I'm using Apache's XML-RPC version 2 with an out of the box Tomcat 5.5.7
installation.  I want to send BASIC authentication headers to the
XML-RPC server running inside a HttpServlet class on my Tomcat web
app.   I can execute non-auth based xml-rpc requests no problem, the
only issue I have is getting the Authorization header information passed
on to my Servlet.

Here's the basic snippet of code I call, but the HttpServletRequest
object on the server is the same with or without the 2nd line.

            this.trans = new CommonsXmlRpcTransport(this.url);
            this.trans.setBasicAuthentication("AKJADA", "ASFAFDS");
            Object obj = client.execute(req, this.trans);

Do I need some sort of rewrite rules in Tomcat or is there some way to
let the servlet handle the authentication?  It seems Tomcat strips that
header before passing it onto the servlet.


View raw message