|
List Info
Thread: Saving credentials between wdr method calls?
|
|
| Saving credentials between wdr method
calls? |

|
2006-04-26 18:47:47 |
Thanks Miguel -- preemptive authentication is currently
being
used by the client but unfortunately it doesn't produce the
desired result.
Cheers,
Brandon
---- On Wed, 26 Apr 2006, Miguel Figueiredo
(mfigueiredo maisis.pt) wrote:
>
> Hello Brandon,
>
> Check out this URL:
>
http://jakarta.apache.org/commons/ht
tpclient/authentication.html#Preemptive_
> Authentication
>
> I'm sorry if I mislead you. Of course there is no
such
header, is just an
> ability the http connection API may have
(PreAuthenticate is a
.net
> framework HttpWebRequest property, thus my mistake). In
the
case of jakarta
> commons http client, the property to setup is
accessible
through the set(er)
> client.getParams().setAuthenticationPreemptive(bool b).
>
> Hope this helps,
> Miguel Figueiredo
>
>
> -----Original Message-----
> From: Brandon Dove [mailto:bcdove ureach.com]
> Sent: quarta-feira, 26 de Abril de 2006 17:25
> To: 'Slide Users Mailing List'
> Subject: Re: RE: Saving credentials between wdr method
calls?
>
> Looking at the HTTP/1.1 header definitions:
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
>
> I can't find any reference to a
"pre-authenticate" header...
>
> Can you point me to any reference material about this?
>
> Cheers,
>
> Brandon
>
> ---- On Wed, 26 Apr 2006, Miguel Figueiredo
> (mfigueiredo maisis.pt) wrote:
>
> >
> > (quick tip)
> >
> > Hello Brandon,
> >
> > I know that there is na http header named
pre-authenticate.
> If you set it
> > to true in the jackarta http client lib, maybe
you're able
to
> do what you
> > need.
> >
> > Hope this helps,
> > Miguel
> >
> > -----Original Message-----
> > From: Brandon Dove [mailto:bcdove ureach.com]
> > Sent: segunda-feira, 24 de Abril de 2006 17:11
> > To: slide-user jakarta.apache.org
> > Subject: Saving credentials between wdr method
calls?
> >
> > If I have the following code:
> >
> > WebdavResource wdr = null;
> > HttpURL hrl = null;
> > try {
> > hrl = new HttpURL("http://myhost.com/slid
e/files/" );
> > hrl.setUserinfo("username",
"password");
> >
> > wdr = new WebdavResource( hrl );
> >
> > System.out.println("-->First
action.");
> > wdr.list();
> >
> > System.out.println("-->Second
action.");
> > wdr.list();
> >
> > } catch (Exception e) {
> > //do something
> > }
> >
> > I see that in each call to wdr.list() the resource
is forced
> to
> > authenticate. Is there a way to save the
credentials between
> > method calls so that I only need to authenticate
the first
> time
> > and not all subsequent times?
> >
> > Cheers,
> >
> > Brandon
> >
> > ________________________________________________
> > Get your own "800" number
> > Voicemail, fax, email, and a lot more
> > http://www.ureach.com/r
eg/tag
> >
> >
>
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
> slide-user-unsubscribe jakarta.apache.org
> > For additional commands, e-mail:
> slide-user-help jakarta.apache.org
> >
> >
> >
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/r
eg/tag
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail:
slide-user-unsubscribe jakarta.apache.org
> For additional commands, e-mail:
slide-user-help jakarta.apache.org
>
>
>
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/r
eg/tag
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|
|
| Saving credentials between wdr method
calls? |

|
2006-04-26 19:34:20 |
Hello again,
That should have worked. Anyway, here goes another tip...
have you got
keep-alive connections set to true? The client might be
closing the
connections after each request, thus needing to authenticate
every time.
Hope this helps,
Miguel
-----Original Message-----
From: Brandon Dove [mailto:bcdove ureach.com]
Sent: quarta-feira, 26 de Abril de 2006 19:48
To: Miguel Figueiredo; 'Slide Users Mailing List'
Subject: RE: RE: Saving credentials between wdr method
calls?
Thanks Miguel -- preemptive authentication is currently
being
used by the client but unfortunately it doesn't produce the
desired result.
Cheers,
Brandon
---- On Wed, 26 Apr 2006, Miguel Figueiredo
(mfigueiredo maisis.pt) wrote:
>
> Hello Brandon,
>
> Check out this URL:
>
http://jakarta.apache.org/commons/ht
tpclient/authentication.html#Preemptive_
> Authentication
>
> I'm sorry if I mislead you. Of course there is no
such
header, is just an
> ability the http connection API may have
(PreAuthenticate is a
.net
> framework HttpWebRequest property, thus my mistake). In
the
case of jakarta
> commons http client, the property to setup is
accessible
through the set(er)
> client.getParams().setAuthenticationPreemptive(bool b).
>
> Hope this helps,
> Miguel Figueiredo
>
>
> -----Original Message-----
> From: Brandon Dove [mailto:bcdove ureach.com]
> Sent: quarta-feira, 26 de Abril de 2006 17:25
> To: 'Slide Users Mailing List'
> Subject: Re: RE: Saving credentials between wdr method
calls?
>
> Looking at the HTTP/1.1 header definitions:
>
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
>
> I can't find any reference to a
"pre-authenticate" header...
>
> Can you point me to any reference material about this?
>
> Cheers,
>
> Brandon
>
> ---- On Wed, 26 Apr 2006, Miguel Figueiredo
> (mfigueiredo maisis.pt) wrote:
>
> >
> > (quick tip)
> >
> > Hello Brandon,
> >
> > I know that there is na http header named
pre-authenticate.
> If you set it
> > to true in the jackarta http client lib, maybe
you're able
to
> do what you
> > need.
> >
> > Hope this helps,
> > Miguel
> >
> > -----Original Message-----
> > From: Brandon Dove [mailto:bcdove ureach.com]
> > Sent: segunda-feira, 24 de Abril de 2006 17:11
> > To: slide-user jakarta.apache.org
> > Subject: Saving credentials between wdr method
calls?
> >
> > If I have the following code:
> >
> > WebdavResource wdr = null;
> > HttpURL hrl = null;
> > try {
> > hrl = new HttpURL("http://myhost.com/slid
e/files/" );
> > hrl.setUserinfo("username",
"password");
> >
> > wdr = new WebdavResource( hrl );
> >
> > System.out.println("-->First
action.");
> > wdr.list();
> >
> > System.out.println("-->Second
action.");
> > wdr.list();
> >
> > } catch (Exception e) {
> > //do something
> > }
> >
> > I see that in each call to wdr.list() the resource
is forced
> to
> > authenticate. Is there a way to save the
credentials between
> > method calls so that I only need to authenticate
the first
> time
> > and not all subsequent times?
> >
> > Cheers,
> >
> > Brandon
> >
> > ________________________________________________
> > Get your own "800" number
> > Voicemail, fax, email, and a lot more
> > http://www.ureach.com/r
eg/tag
> >
> >
>
------------------------------------------------------------
---------
> > To unsubscribe, e-mail:
> slide-user-unsubscribe jakarta.apache.org
> > For additional commands, e-mail:
> slide-user-help jakarta.apache.org
> >
> >
> >
>
>
> ________________________________________________
> Get your own "800" number
> Voicemail, fax, email, and a lot more
> http://www.ureach.com/r
eg/tag
>
>
------------------------------------------------------------
---------
> To unsubscribe, e-mail:
slide-user-unsubscribe jakarta.apache.org
> For additional commands, e-mail:
slide-user-help jakarta.apache.org
>
>
>
________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/r
eg/tag
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
------------------------------------------------------------
---------
To unsubscribe, e-mail: slide-user-unsubscribe jakarta.apache.org
For additional commands, e-mail: slide-user-help jakarta.apache.org
|
|
[1-2]
|
|