RE: PROPFIND - Content-Length Header !!!

Cristi,

This request is missing some of the elements of a standard PROPFIND request.
See http://www.ietf.org/rfc/rfc2518.txt  -- section 8.1.1 shows an example
of a PROPFIND request with all the required elements in the body.  The one
you're missing is the <prop> element.  Your request body should be:

<?xml version="1.0" encoding="utf-8" ?><D:propfind
xmlns:D="DAV:"><D:prop><D:getcontenttype/></D:prop></D:propfind>

Please use the main WebDAV mailing list for questions on RFC2518, because
the mailing list you've used is for DASL (Searching), not all of WebDAV.
The main WebDAV mailing is w3c-dist-auth@w3.org.

Lisa
  -----Original Message-----
  From: www-webdav-dasl-request@w3.org
[mailto:www-webdav-dasl-request@w3.org]On Behalf Of Cristi Gafita
  Sent: Thursday, December 06, 2001 3:33 AM
  To: www-webdav-dasl@w3.org
  Subject: PROPFIND - Content-Length Header !!!


  Hi,
  I try to make a request for an Exchange2000 server like this :

  PROPFIND /exchange/admin/Inbox/c.EML HTTP/1.1
  Host: 192.108.5.23:80
  Accept-Language: en-us
  Authorization: Basic c3RyYXRldXI6RE5V6XRER7T3WVZYWA==
  Content-Type: text/xml; charset="utf-8"
  Connection: close
  Content-Length: 98

  <?xml version="1.0" encoding="utf-8" ?><D:propfind
xmlns:D="DAV:"><D:getcontenttype/></D:propfind>

  well it doesn't work, when I don't use Content-Length header it does work.
I thought that I write a wrong Content-Length but I don't. For some requests
like PROPFIND it works without Content-Length but I need this for something
else. My request body has no CRLF it's just a line with a propfind element.
I don't understand.
  Do I write anything wrong ?

  -Chris

Received on Thursday, 6 December 2001 12:36:52 UTC