If you just want to add your credentials to the url, you have to do it like this...

http://user:[EMAIL PROTECTED]:8080/sharedfolder

NOTE: The latest http-commons doesn't set credentials correctly (see prior e-mail chain with my name), I had to manually insert the username and password into the ur (a hack, but it works)

Jeff


From: Luke Noel-Storr <[EMAIL PROTECTED]>
Reply-To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
To: Slide Users Mailing List <[EMAIL PROTECTED]>
Subject: Re: Slide Tomcat Sessions - Closing them
Date: Tue, 11 May 2004 16:13:24 +0100

OK, I'm sure I'm probably being stupid, but how do I put my username and password into the URL?

I've tried sticking "?user=luke&password=password" (and variations of this) at the end of the URL, but that doesn't seem to work.


Cheers


Luke.
-----

Luke Noel-Storr wrote:

I had just downloaded the source and discovered that it was this check that was causing the problem.

Thank you for the solution to the problem, I will give it a go.

At first glance though it would seem there are more security implications arround this solution - is this the case?


Cheers


Luke.
-----

Ingo Brunberg wrote:

Ok, I think I have found the reason you end up creating new sessions
everytime. But that should not be specific to reportMethod() but all
WebDAV methods you call from WebdavResource.

Try putting your username and password into your URL. You can then
omit the Credentials.

There's a strange test in WebdavResource, that gets executed before
every method call to check if the current credentials have changed.
This method is broken if you don't put them into the URL. This check
could be omitted if the URL and userinfo within WebdavResource were
protected from foreign mutations. I would like to see these
restrictions introduced in the post 2.0 code as
1) I see no benefit in being able to change those parameters after a
  WebdavResource is being created.
2) you could easily cache the decoded path and name to avoid decoding
  the path on every call to getPath(), getName() and when executing a
  WebDAV method for the current resource.

Ingo



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




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


_________________________________________________________________
Express yourself with the new version of MSN Messenger! Download today - it's FREE! http://messenger.msn.com/go/onm00200471ave/direct/01/



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



Reply via email to