W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > July to September 2000

RE: WebDAV enabled applet example

From: Jim Whitehead <ejw@ics.uci.edu>
Date: Mon, 14 Aug 2000 16:56:36 -0700
To: WebDAV WG <w3c-dist-auth@w3.org>, csamson@ndirect.co.uk
Oops -- looks like this message was accidentally attributed to me when I
re-sent it to the list after it was caught by the spam filter.  It was
originally sent by JC Sampson <csamson@ndirect.co.uk>. I've added this email
address to the accept2 list, so future emails will go through to the list.

My only thoughts are:

>           to_server.println("PROPFIND " + filename + " HTTP/1.0\r\n\r\n");

This looks like it would send too many CRLF's -- I think you should omit the
\r\n\r\n at the end of the line, since the CRLF added by println should be
sufficient.  Also, you should be sending HTTP/1.1, not HTTP/1.0.

>           to_server.println("Host:" +  host);
>           to_server.println("Content-Type: text/xml");
>           to_server.println("Authorization: Basic " + userpass + " ");
>            query="<?xml version=\"1.0\" encoding=\"utf-8\"?>"+
>             "<D:propfind xmlns:D=\"DAV:\">"+
>             "<D:allprop/></D:propfind>";
>           to_server.println("Content-Length: "+ query.length());
>           to_server.println(query);
>           to_server.flush();

Perhaps it also expects a User-Agent header as well.  Do you get the same
behavior interacting against Sharemation <http://www.sharemation.com/>?

- Jim
Received on Monday, 14 August 2000 20:02:20 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:01:22 UTC