W3C home > Mailing lists > Public > w3c-dist-auth@w3.org > October to December 2001

FW: WebDav and Java authorization

From: Jim Whitehead <ejw@cse.ucsc.edu>
Date: Fri, 7 Dec 2001 11:57:48 -0800
To: "WebDAV" <w3c-dist-auth@w3.org>
Accidentally caught by the spam filter.

- Jim

-----Original Message-----
From: Golder, Robert [mailto:RGolder@imaginecrm.com]
Sent: Friday, December 07, 2001 1:17 AM
To: w3c-dist-auth@w3.org
Subject: [Moderator Action] WebDav and Java authorization


I am trying to create a text file on a URL in a Java class.

The directory requires username and password to access.

How/where can I set these in the code?

	url = new URL("http://myserver/webdav/myFile.txt");
            connection = (HttpURLConnection)aUrl.openConnection();
            out = new PrintWriter(connection.getOutputStream());
        	out.println("Some Text");

Currently I get a 401 authorization error.


Legally privileged/confidential information may be contained in this
message.  If you are not the intended addressee(s) of this message, you may
not copy or deliver this message to anyone.  In such case, you should
destroy this message, and notify us immediately by calling  telephone 01753

Please note that Imagin Europe Limited does not accept any responsibility
for viruses and it is your responsibility to scan attachments (if any).
Whilst Imagin Europe Limited scans both incoming and outgoing emails for
viruses using current anti-virus software it is still possible for a virus
to become attached to an email's attachment(s).  Imagin Europe Limited is
not liable for any damage caused or loss suffered by your failure to scan
any attachments for viruses and deal with any such viruses appropriately.
Received on Friday, 7 December 2001 14:58:20 UTC

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