Excellent, that works nicely now. Thank you.
-Mike
On Thu, 2004-06-24 at 19:40, James Mason wrote:
> Try passing in the full path for the collection you want to create, ie:
> resource.mkcolMethod("/slide/files/1234").
>
> As for username/password, you don't need to reset them. WebdavResource
> has an internal HttpClient that it uses, and it keeps the same client
> for all requests.
>
> -James
>
> >>> [EMAIL PROTECTED] 6/24/2004 4:26:15 PM >>>
> When I try:
>
> resource.mkcolMethod("1234");
>
> on a resource I know exists, I get status report of:
>
> Bad Request (400)
>
> What did I do wrong?
>
>
> On a side note about having write access, if I create a
> WebdavResource:
>
> resource = new WebdavResource("http://user:[EMAIL PROTECTED]/webdav")
>
> and then later get a child resource:
>
> child = resource.getChildResources().getResource("subdir")
>
> do I have to set the username/password info for this new
> WebdavResource
> object, or will it inherit from the parent?
>
> -Mike
>
> On Thu, 2004-06-24 at 18:45, James Mason wrote:
> > Mike,
> >
> > After the failure call WebdavResource.getStatusMessage() and
> > WebdavResource.getStatusCode(). If those are the only methods that
> are
> > failing you probably don't have write access.
> >
> > -James
> >
> > >>> [EMAIL PROTECTED] 6/24/2004 3:48:13 PM >>>
> > The get methods seem to work, but do the put and mkCol methods work?
>
> > So
> > far, they just return false - no exceptions, just false.
> >
> > -Mike
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
Michael Stover <[EMAIL PROTECTED]>
Apache Software Foundation
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]