You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by "Park, Sung-Gu" <je...@thinkfree.com> on 2000/12/12 02:50:32 UTC

needToCloseConnection?

- Class: WebdavClient
- Method: needToCloseConnection
- Problem: 
   Some DAV methods in some DAV Server don't send the "content-length" header.
   (DAV Server ex.: Apache with mod_dav, Zope)
- Solution:
   plz, get rid of checking contentLength in needToCloseConnection.



Re: Auth Basic interoperation with Zope

Posted by Remy Maucherat <re...@apache.org>.
> Zope Server returns string "basic" in www-authenticate header.
> I don't know whether "Basic" is correct or "basic."
> please, refer to RFC2617.

"Basic" (and "Digest") are the correct values, but allowing case variations
for robustness looks like a sensible thing to do.

Remy


Auth Basic interoperation with Zope

Posted by "Park, Sung-Gu" <je...@thinkfree.com>.
Zope Server returns string "basic" in www-authenticate header.
I don't know whether "Basic" is correct or "basic."
please, refer to RFC2617.

CLASS: Authenticator

CODE:
        if (challenge.toLowerCase().startsWith("basic")) {
            return basic(credentials);
        } else if (challenge.toLowerCase().startsWith("digest")) {

 

Re: needToCloseConnection?

Posted by Remy Maucherat <re...@apache.org>.
> - Class: WebdavClient
> - Method: needToCloseConnection
> - Problem:
>    Some DAV methods in some DAV Server don't send the "content-length"
header.
>    (DAV Server ex.: Apache with mod_dav, Zope)
> - Solution:
>    plz, get rid of checking contentLength in needToCloseConnection.

No.
When we're using HTTP/1.1, if the content length is not set and chunking is
not used, then the connection has to be closed and reopened. Note that it
shouldn't happen if the server is HTTP/1.1 compliant.

The servers you mention are using chunking, so the connection is not closed.

Remy