I would expect the the basic authentication scheme to be used within the
FileGenerator .. but I don't know where to pass in the username:password for
my case using the username:[EMAIL PROTECTED]:port directly in a browser to the
site I am interested in does not work. Are you saying that the cocoon
FileGenerator will strip the username:password part and, in effect to the
following:
1. URL url = new URL(urlstring);
2. String userPassword = theUsername + ":" + thePassword;
3. String encoding = new sun.misc.BASE64Encoder().encode(
userPassword.getBytes());
4. URLConnection uc = url.openConnection();
5. uc.setRequestProperty("Authorizatio","Basic " + encoding);
6. ...
On 4/25/07, Joerg Heinicke <[EMAIL PROTECTED]> wrote:
On 25.04.2007 04:58, Joseph White wrote:
> The FileGenerator lets me access a website and get XML that I want to
> present. How do I include the necessary authentication (or allow the
> authentication to "pop-up") so I can receive the XML output?
It depends on the authentication scheme. It sounds like basic
authentication, so there might be a way to encode it in the URL itself.
It might be wrong or non-standard, but I remember something like
http://user:[EMAIL PROTECTED]
Regards
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Joseph White