Hi Joe,
On Jan 31, 2007, at 4:11 AM, Joe Orton wrote:
Hi Tim,
On Tue, Jan 30, 2007 at 10:07:06PM -0600, Tim Dean wrote:
I am trying to do some experiments with connecting to a MS Exchange
server via WebDAV. I am able to, for example, connect to the server
from my Mac's Finder using an HTTPS URL. My Exchange items are
available for me to view just like any remote disk.
When I try to connect via cadaver, however, it doesn't work. I'm
using version 0.22.3 (the latest version available via a macports.org
installation). The following is what happens when I try:
Jefferson:~ tdean$ cadaver https://webmail.myserver.com/exchange/
myid/
Could you try this with debugging enabled:
$ cadaver
set debug http,httpbody
open https://webmail.myserver.com/exchange/myid/
and post the complete output?
Here it is:
dav:!> set debug http,httpbody
dav:!> open https://webmail.myserver.com/exchange/myid/
HTTP session to https://webmail.myserver.com:443 begins.
Doing DNS lookup on webmail.myserver.com...
Running pre_send hooks
Sending request headers:
OPTIONS / HTTP/1.1
Host: webmail.myserver.com
User-Agent: cadaver/0.22.3 neon/0.26.2
Keep-Alive:
Connection: TE, Keep-Alive
TE: trailers
Sending request-line and headers:
Connecting to xxx.xxx.xxx.xxx
WARNING: Untrusted server certificate presented for
`webmail.myserver.com':
Issued to: Me, My Corporation, MyTown, MyState, US
Issued by: Equifax Secure Certificate Authority, Equifax, US
Certificate is valid from Mon, 11 Apr 2005 22:21:41 GMT to Thu, 12
Apr 2007 22:21:41 GMT
Do you wish to accept the certificate? (y/n) y
Request sent; retry is 0.
[status-line] < HTTP/1.1 200 OK
[hdr] Set-Cookie: BIGipServerWEBMAILERF-80=2434197411.20480.0000; path=/
Header Name: [set-cookie], Value:
[BIGipServerWEBMAILERF-80=2434197411.20480.0000; path=/]
[hdr] Allow: OPTIONS, TRACE, GET, HEAD
Header Name: [allow], Value: [OPTIONS, TRACE, GET, HEAD]
[hdr] Content-Length: 0
Header Name: [content-length], Value: [0]
[hdr] Server: Microsoft-IIS/6.0
Header Name: [server], Value: [Microsoft-IIS/6.0]
[hdr] Public: OPTIONS, TRACE, GET, HEAD, POST
Header Name: [public], Value: [OPTIONS, TRACE, GET, HEAD, POST]
[hdr] X-Powered-By: ASP.NET
Header Name: [x-powered-by], Value: [ASP.NET]
[hdr] Date: Thu, 01 Feb 2007 03:19:37 GMT
Header Name: [date], Value: [Thu, 01 Feb 2007 03:19:37 GMT]
[hdr]
End of headers.
Running post_send hooks
Request ends, status 200 class 2xx, error line:
200 OK
Running destroy hooks.
Request ends.
Running pre_send hooks
Sending request headers:
PROPFIND / HTTP/1.1
Host: webmail.myserver.com
User-Agent: cadaver/0.22.3 neon/0.26.2
Connection: TE
TE: trailers
Depth: 0
Content-Length: 288
Content-Type: application/xml
Sending request-line and headers:
Sending request body:
Body block (288 bytes):
[<?xml version="1.0" encoding="utf-8"?>
<propfind xmlns="DAV:"><prop>
<getcontentlength xmlns="DAV:"/>
<getlastmodified xmlns="DAV:"/>
<executable xmlns="http://apache.org/dav/props/"/>
<resourcetype xmlns="DAV:"/>
<checked-in xmlns="DAV:"/>
<checked-out xmlns="DAV:"/>
</prop></propfind>
]
Request sent; retry is 1.
[status-line] < HTTP/1.1 501 Not Implemented
[hdr] Set-Cookie: BIGipServerWEBMAILERF-80=2434197411.20480.0000; path=/
Header Name: [set-cookie], Value:
[BIGipServerWEBMAILERF-80=2434197411.20480.0000; path=/]
[hdr] Content-Length: 0
Header Name: [content-length], Value: [0]
[hdr] Server: Microsoft-IIS/6.0
Header Name: [server], Value: [Microsoft-IIS/6.0]
[hdr] X-Powered-By: ASP.NET
Header Name: [x-powered-by], Value: [ASP.NET]
[hdr] Date: Thu, 01 Feb 2007 03:19:37 GMT
Header Name: [date], Value: [Thu, 01 Feb 2007 03:19:37 GMT]
[hdr]
End of headers.
Running post_send hooks
Request ends, status 501 class 5xx, error line:
501 Not Implemented
Running destroy hooks.
Request ends.
Could not access / (not WebDAV-enabled?):
501 Not Implemented
ne_session_destroy called.
Connection to `webmail.myserver.com' closed.
cadaver(17513) malloc: *** Deallocation of a pointer not malloced:
0x1bb; This could be a double free(), or free() called with the
middle of an allocated block; Try setting environment variable
MallocHelp to see tools to help debug
dav:!>
cadaver(16976) malloc: *** Deallocation of a pointer not malloced:
0x1bb; This could be a double free(), or free() called with the
middle of an allocated block; Try setting environment variable
MallocHelp to see tools to help debug
Segmentation fault
And if you could get a backtrace from this from gdb that would help:
$ gdb --args cadaver https://webmail.myserver.com/exchange/myid/
...
Segmentation fault
(gdb) bt
Here's the backtrace:
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x6d375b1b
0x9613804b in el_getc ()
(gdb) bt
#0 0x9613804b in el_getc ()
#1 0x961393e7 in el_init ()
#2 0x9613f35a in rl_initialize ()
#3 0x9613f92d in add_history ()
#4 0x00003bf8 in main (argc=2, argv=0xbffff9f0) at src/cadaver.c:459
Thanks,
- Tim
_______________________________________________
cadaver mailing list
[email protected]
http://mailman.webdav.org/mailman/listinfo/cadaver