Ingo,

I have tested this and it works fine. Great, thank you. I had build my own dirty 
workaround because I tried to patch the Slide code but found that I know too few about 
it in order to be successful. Right know I am more a programmer user of Slide as I am 
working on some improvements to the WebDAV plugins for both jEdit and NetBeans. They 
are both based on the Slide WebDAV library.

This was probably a little change to the code but a huge improvement for mankind. If 
you are in an environment behind a HTTP proxy that requires you to authenticate and 
you cannot you are essentially locked out which renders Slide just next to useless. 
And at least in my person view one of the reasons why I am interested in WebDAV at all 
is because it seems to be the best way to manipulate files across a proxy / firewall 
boundary.

I know WebDAV is mean to offer a lot of other things but the plain task of updating a 
webpage on your personal server from the office (during breaks, of course :-) ) can be 
close to impossible. A lot of companies will not allow you to use FTP (don't even 
think of NFS or SMB mounts) through their firewall and Web2FTP interfaces are a pain 
on the neck.

Regards,
Torsten

-----Urspr�ngliche Nachricht-----
Von: Ingo Brunberg [mailto:[EMAIL PROTECTED]
Gesendet am: Dienstag, 1. April 2003 12:17
An: [EMAIL PROTECTED]
Betreff: Re: Using the WebDAV client with proxy authentication

Hi Torsten,

I checked in a small patch to allow for proxy authentication. Now you
can use

new WebdavResource(url, "my-proxy.com", 1234,
                   new UsernamePasswordCredentials("user", "pass"));

Please let me know if it works.

Regards,
Ingo

> Dear list,
> 
> does anyone know if the WebDAV client portion of Slide is aware that
> there are HTTP proxies that require authentication?
> 
> The underlying commons-http-client supports proxy authentication,
> but I cannot find anything about this in the Slide WebDAV client
> code. I try to start off with Slide using
> 
> new WebdavResource(url,"my-proxy.com",1234);
> 
> and looking at the wire log it fails because if does not know any
> credentials to provide to the proxy to authenticate against it. (I
> am _not_ talking about authenticating against the WebDAV server. I
> don't even get to that point because I cannot authenticate to the
> proxy server.
> 
> The tutorial of commons-http-client talks about how to do proxy
> authentication (see
> http://jakarta.apache.org/commons/httpclient/authentication.html)
> but it does not say on what objects to call the setProxyCredentials
> methods. Looking at the source I found it implemented in HttpState,
> but as an instance method. But I don't have a chance to get to the
> HttpSate instance when calling new
> WebdavResource(url,"my-proxy.com",1234) because that call already
> fails.
> 
> (There is a getClient method that would allow to drill down to the
> HttpState probably but I cannot call this before the new
> WebdavResource call fails.)
> 
> Did I overlook anything?
> 
> -----------------------------------------
> Torsten Schlabach +49 228 936 4735 [EMAIL PROTECTED]
> T-Mobile Deutschland GmbH
> -----------------------------------------


---------------------------------------------------------------------
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]

Reply via email to