On Wednesday 14 July 2004 18:27, [EMAIL PROTECTED] wrote:

> I want to have the servlet using some http authentication. But how can I
> forward this to the
> org.apache.commons.httpclient.HttpURL
> That I need to construct the WebdavResource?
>
> There is a method getRemoteUser() in javax.servlet.http.HttpServletRequest
> But how can I forward the password, or the authentification?

There aren't methods for these, you have to read the request headers. With 
Basic HTTP Authentication you have a header named "Authorization" that should 
contains something like this: 

BASIC d2VibWFzdGVyOnRyeTJndWVTUw

The string following "BASIC " is encoded with Base64 and contains 
username:password.

-- 
Davide Savazzi

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to