473,466 Members | 1,313 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Problem with WEBDAV

I have tried the code supplied by microsoft help page as below and all
I get is
440
Login Timeout
I have checked the address with the administrator and he says this is
right.
I feel as if I am close, but obviously not close enough....

Dim oXMLHttp As MSXML2.XMLHTTP30 = New MSXML2.XMLHTTP30()
Dim sUrl As String
Dim sQuery As String

' TODO: Replace with your folder URL.
sUrl = "https://SBS2003/Exchange/Terry/Inbox"

' Open the folder.
oXMLHttp.open("SEARCH", sUrl, False, "ESS\Terry",
"MyPassword")

' Set up the query.
sQuery = "<?xml version='1.0'?>" & _
"<g:searchrequest xmlns:g='DAV:'>" & _
"<g:sql>SELECT ""DAV:displayname"" " & _
"FROM SCOPE('SHALLOW TRAVERSAL OF """ & sUrl & """')"
sQuery = sQuery & " WHERE ""DAV:isfolder"" = true" & _
"</g:sql>" & _
"</g:searchrequest>"

' Set up request headers.
oXMLHttp.setRequestHeader("Content-Type", "text/xml")
oXMLHttp.setRequestHeader("Translate", "f")
oXMLHttp.setRequestHeader("Depth", "0")
oXMLHttp.setRequestHeader("Content-Length", "" &
sQuery.Length)

' Send the query.
oXMLHttp.send(sQuery)

s = oXMLHttp.status & vbCrLf
s &= oXMLHttp.statusText & vbCrLf
s &= oXMLHttp.responseText

' Cleanup.
oXMLHttp = Nothing
Me.TextBox1.Text = s

Thanks in advance for any feedback
Terry

May 30 '07 #1
1 1621
Hello,

see http://www.infinitec.de/articles/exc...avwithfba.aspx

Best regards,
Henning Krause

"ngrTerry" <ng*@tdrd.karoo.co.ukwrote in message
news:11**********************@g4g2000hsf.googlegro ups.com...
>I have tried the code supplied by microsoft help page as below and all
I get is
440
Login Timeout
I have checked the address with the administrator and he says this is
right.
I feel as if I am close, but obviously not close enough....

Dim oXMLHttp As MSXML2.XMLHTTP30 = New MSXML2.XMLHTTP30()
Dim sUrl As String
Dim sQuery As String

' TODO: Replace with your folder URL.
sUrl = "https://SBS2003/Exchange/Terry/Inbox"

' Open the folder.
oXMLHttp.open("SEARCH", sUrl, False, "ESS\Terry",
"MyPassword")

' Set up the query.
sQuery = "<?xml version='1.0'?>" & _
"<g:searchrequest xmlns:g='DAV:'>" & _
"<g:sql>SELECT ""DAV:displayname"" " & _
"FROM SCOPE('SHALLOW TRAVERSAL OF """ & sUrl & """')"
sQuery = sQuery & " WHERE ""DAV:isfolder"" = true" & _
"</g:sql>" & _
"</g:searchrequest>"

' Set up request headers.
oXMLHttp.setRequestHeader("Content-Type", "text/xml")
oXMLHttp.setRequestHeader("Translate", "f")
oXMLHttp.setRequestHeader("Depth", "0")
oXMLHttp.setRequestHeader("Content-Length", "" &
sQuery.Length)

' Send the query.
oXMLHttp.send(sQuery)

s = oXMLHttp.status & vbCrLf
s &= oXMLHttp.statusText & vbCrLf
s &= oXMLHttp.responseText

' Cleanup.
oXMLHttp = Nothing
Me.TextBox1.Text = s

Thanks in advance for any feedback
Terry
May 30 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Allman | last post by:
I'm trying to implement a small WebDAV server using PHP. (WebDAV is an HTTP extension that (among other things) makes it possible to manage files using the HTTP protocol; kinda in the same way...
0
by: William Trenker | last post by:
I've been goolging for a WebDAV client written in Python. I've found http://www.webdav.org/projects/ which includes http://www.lyra.org/greg/python/davlib.py but not much else for the client side. ...
2
by: scummer | last post by:
Hi, I am having a problem with the httplib HTTPConnection object. While I can easily send requests that don't have any payload (ie. "get"), I encounter issues if I want to post xml data. If you...
4
by: Jody Winston | last post by:
I'd like to present a view of an internal data store, which has Python interface built using SWIG, so that my users can traverse and manipulate the data store using familiar tools. My first...
2
by: rbt | last post by:
Has anyone used pure python to upload files to a webdav server over SSL? I have no control over the server. I can access it with all of the various webdav GUIs such as Konqueror, Cadaver, etc. by...
0
by: Rade Josovic | last post by:
Hi, First implementation of WebDAV protocol is here: WebDAV .NET 1.0 from Independentsoft. Go to http://www.independentsoft.de The WebDAV .NET is WebDAV protocol API for Microsoft .NET...
0
by: Michael G. Schneider | last post by:
I just started playing around with WebDAV. The basic configuration is done and works. For example I am able to open a document via HTTP from within Word and save it. What I am really looking for...
3
by: Glenn Holliday | last post by:
I want an Access application to use an .mdb file via WebDAV in a remote directory. The Access documentation is silent as far as I can find. I've received some opinions that since Office XP adds...
0
by: SimpleSimple | last post by:
My company has an IIS 5, ASP.net intranet site that contains documents for employee use. The files are of various types (most often Office) and are stored in blob fields in a SQL2000 database. ...
7
by: Steve Drake | last post by:
All, I am doing a WEBDAV request and I want to pass the users Credentials to the webdav server, eg some code like : Request.Credentials = CredentialCache.DefaultCredentials; This does not...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.