Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
Exchange
2000.active.directory
2000.admin
2000.announcements
2000.app.conversion
2000.applications
2000.clients
2000.clustering
2000.connectivity
2000.development
2000.documentation
2000.general
2000.information.store
2000.interop
2000.kms
2000.misc
2000.protocols
2000.realtime.collabo.
2000.setup
2000.transport
2000.win2000
admin
application.conversion
applications
clients
clustering
connectivity
design
development
misc
mobility
setup
tools
  
 
date: Thu, 20 Apr 2006 19:38:37 +0200,    group: microsoft.public.exchange2000.development        back       


Downloading message attachment using WebDAV   
I've successfully put in an HTTP request (using the X-MS-ENUMATTS 
method) to get the attachment url of a given message. Part of the XML 
returned back is:

<a:response>
 
<a:href>http://srv/exchange/account/Inbox/Test.EML/Attachment.doc</a:href>
   <a:propstat>
     <a:status>HTTP/1.1 200 OK</a:status>
     <a:prop>
       <d:x3703001f>.doc</d:x3703001f>
       <d:x3704001f>Attachment.doc</d:x3704001f>
       ............
     </a:prop>
   </a:propstat>

</a:response>

Now I would like to download the given attachment on the local computer 
and send a GET request to the previously found url 
(http://srv/exchange/account/Inbox/Test.EML/Attachment.doc) and the 
server responds with a 403 FORBIDDEN status. What could be wrong? Is 
there some option in the Exchange Server configuration which wouldn't 
allow downloading attachments through WebDAV? Any suggestions would be 
greatly appreciated.


PS: I use the System.Net.HttpWebRequest class in .Net to make my 
requests and I am sending the currently connected user credentials in 
order to authenticate.
date: Thu, 20 Apr 2006 19:38:37 +0200   author:   Darin Dimitrov

Re: Downloading message attachment using WebDAV   
I found the answer myself. I had to add the "Translate: f" header to my
GET request and was able to successfully fetch the attachment.
date: 21 Apr 2006 08:02:05 -0700   author:   unknown

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us