W3C home > Mailing lists > Public > www-webdav-dasl@w3.org > October to December 2001

RE: Exchange 2000 - HTTP/1.1 400 Bad Request

From: Sean Lyndersay <seanlynd@Exchange.Microsoft.com>
Date: Mon, 26 Nov 2001 16:13:51 -0800
Message-ID: <33BC111EC6FF1C4DA2060BE45705B6AD146FB8@DF-BOWWOW.platinum.corp.microsoft.com>
To: "Cristi Gafita" <gcris80@hotmail.com>, <www-webdav-dasl@w3.org>
Off-hand, I'd say your content-length was wrong. Drop the content-length
header, or calculate it correctly (I get 101 characters).

 

Sean

 

-----Original Message-----
From: Cristi Gafita [mailto:gcris80@hotmail.com] 
Sent: Monday, November 26, 2001 3:34 AM
To: www-webdav-dasl@w3.org
Subject: Exchange 2000 - HTTP/1.1 400 Bad Request

 

I try to make a java WebDAV client, I work with Exchange 2000. 

I made a connection with sockets in Java:

 

Socket socket = new Socket("192.168.5.74", 80);

 

I took the OutputStream and I send the request.

 

When I make an xml request I become just "HTTP/1.1 400 Bad Request"
response.

My request is like this:

 

PROPFIND /exchange/admin/Inbox/ HTTP/1.1
Host: 192.168.5.74
Connection: Keep-Alive
Content-type: text/xml; charset="utf-8"
Content-Length: 90
Accept-Language: en-us
Authorization: Basic YWRyYXRldXI6RERERVZYWA==

 

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

 

Do I miss something ?
Received on Monday, 26 November 2001 19:13:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 22 March 2009 03:38:07 GMT