I started the shell with the -l flag, and then issued a single ls command
at the prompt. The results logs are in the attachment.

I can see some strange goings on, but no idea what to do to fix it up...

-Sriram


On Sat, Jun 29, 2013 at 6:38 AM, Cyrus Daboo <cda...@apple.com> wrote:

> Add --logging when running the tool and see what http requests are being
> sent.
>
> --
> Cyrus Daboo
> (Tapped out on my iPhone)
>
>
> On Jun 28, 2013, at 8:59 PM, Sriram Karra <karra....@gmail.com> wrote:
>
>
> I am unable to connect to a owncloud carddav account using runshell like I
> am able to do with a calendar server installation. Has anyone had any
> success?
>
> I tried:
>
> ./runshell.py --server
> https://unhammer.org/owncloud/index.php/carddav/principals/skarra/ --user 
> skarra --pswd
>
> Initially there is no message or error. All commands fail with a 405
>
> Any clues?
>
> _______________________________________________
> calendarserver-dev mailing list
> calendarserver-dev@lists.macosforge.org
> https://lists.macosforge.org/mailman/listinfo/calendarserver-dev
>
>
Cardassia:CalDAVClientLibrary sriramkarra$ ./runshell.py -l --server 
https://unhammer.org/owncloud/index.php/carddav/principals/skarra/  --user 
skarra --pswd 

        <-------- BEGIN HTTP CONNECTION -------->
Server: unhammer.org

        <-------- BEGIN HTTP REQUEST -------->
OPTIONS /owncloud/index.php/carddav/principals/skarra/ HTTP/1.1
Host: unhammer.org:443


        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 200 OK
Date: Sat, 29 Jun 2013 06:02:35 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
X-Powered-By: PHP/5.4.16
Strict-Transport-Security: max-age=31536000
Set-Cookie: 517e7ddaa9c31=s9tg5oeak896d5v8kd57hcrf11; path=/; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: Sameorigin
Content-Security-Policy: default-src 'self'; script-src 'self' 'unsafe-eval'; 
style-src 'self' 'unsafe-inline'; frame-src *; img-src *; font-src 'self' 
data:; media-src *
Content-Length: 2699
Content-Type: text/html; charset=utf-8

<!DOCTYPE html>
<!--[if lt IE 7]><html class="ng-csp ie ie6 lte9 lte8 lte7"><![endif]-->
<!--[if IE 7]><html class="ng-csp ie ie7 lte9 lte8 lte7"><![endif]-->
<!--[if IE 8]><html class="ng-csp ie ie8 lte9 lte8"><![endif]-->
<!--[if IE 9]><html class="ng-csp ie ie9 lte9"><![endif]-->
<!--[if gt IE 9]><html class="ng-csp ie"><![endif]-->
<!--[if !IE]><!--><html class="ng-csp"><!--<![endif]-->
        <head data-requesttoken="6b6c04a73eac72309560">
                <title>ownCloud</title>
                <meta http-equiv="Content-Type" content="text/html; 
charset=utf-8" />
                <meta name="apple-itunes-app" content="app-id=543672169">
                <link rel="shortcut icon" href="/owncloud/core/img/favicon.png" 
/>
                <link rel="apple-touch-icon-precomposed" 
href="/owncloud/core/img/favicon-touch.png" />
                                        <link rel="stylesheet" 
href="/owncloud/remote.php/core.css?v=389bc7bb1e1c2a5e7e147703232a88f6" 
type="text/css" media="screen" />
                                                        <script 
type="text/javascript" 
src="/owncloud/index.php/core/js/config.js?v=389bc7bb1e1c2a5e7e147703232a88f6"></script>
                                        <script type="text/javascript" 
src="/owncloud/remote.php/core.js?v=389bc7bb1e1c2a5e7e147703232a88f6"></script>
                                        <script type="text/javascript" 
src="/owncloud/core/js/visitortimezone.js?v=389bc7bb1e1c2a5e7e147703232a88f6"></script>
                        
                        </head>

        <body id="body-login">
                <div id="login">
                        <header><div id="header">
                                <img src="/owncloud/core/img/logo.svg" 
class="svg" alt="ownCloud" />
                        </div></header>
                        <!--[if IE 
8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
<form method="post">
        <fieldset>
                        <ul>
                                                                </ul>
                <p class="infield grouptop">
                        <input type="text" name="user" id="user" placeholder=""
                                   value="" autofocus                           
   autocomplete="on" required/>
                        <label for="user" class="infield">Username</label>
                        <img class="svg" 
src="/owncloud/core/img/actions/user.svg" alt=""/>
                </p>

                <p class="infield groupbottom">
                        <input type="password" name="password" id="password" 
value="" data-typetoggle="#show" placeholder=""
                                   required />
                        <label for="password" class="infield">Password</label>
                        <img class="svg" id="password-icon" 
src="/owncloud/core/img/actions/password.svg" alt=""/>
                        <input type="checkbox" id="show" name="show" />
                        <label for="show"></label>
                </p>
                <input type="checkbox" name="remember_login" value="1" 
id="remember_login"/><label
                        for="remember_login">remember</label>
                <input type="hidden" name="timezone-offset" 
id="timezone-offset"/>
                <input type="submit" id="submit" class="login primary" 
value="Log in"/>
        </fieldset>
</form>

                </div>
                <footer><p class="info"><a 
href="http://owncloud.org/";>ownCloud</a> &ndash;
                        web services under your control</p></footer>
        </body>
</html>

        <-------- END HTTP RESPONSE -------->

        <-------- BEGIN HTTP REQUEST -------->
PROPFIND /owncloud/index.php/carddav/principals/skarra/ HTTP/1.1
Host: unhammer.org:443
Content-Length: 155
Content-Type: text/xml; charset=utf-8
Depth: 0
Brief: t

<?xml version='1.0' encoding='utf-8'?>
<ns0:propfind xmlns:ns0="DAV:">
  <ns0:prop>
    <ns0:current-user-principal />
  </ns0:prop>
</ns0:propfind>

        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 302 Found
Date: Sat, 29 Jun 2013 06:02:36 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
X-Powered-By: PHP/5.4.16
Strict-Transport-Security: max-age=31536000
Set-Cookie: 517e7ddaa9c31=9klnsonrtijkve7t27p0cbfqd5; path=/; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
location: https://unhammer.org:443/owncloud/remote.php/webdav/
Content-Length: 0
Content-Type: text/html; charset=utf-8

 
        <-------- END HTTP RESPONSE -------->

        <-------- END HTTP CONNECTION -------->

        <-------- HTTP REDIRECT -------->
Location: https://unhammer.org:443/owncloud/remote.php/webdav/

        <-------- BEGIN HTTP CONNECTION -------->
Server: unhammer.org

        <-------- BEGIN HTTP REQUEST -------->
PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1
Host: unhammer.org:443
Content-Length: 155
Content-Type: text/xml; charset=utf-8
Depth: 0
Brief: t

<?xml version='1.0' encoding='utf-8'?>
<ns0:propfind xmlns:ns0="DAV:">
  <ns0:prop>
    <ns0:current-user-principal />
  </ns0:prop>
</ns0:propfind>

        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 401 Unauthorized
Date: Sat, 29 Jun 2013 06:02:37 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
X-Powered-By: PHP/5.4.16
Strict-Transport-Security: max-age=31536000
Set-Cookie: 517e7ddaa9c31=pk5rs6p2dntopkojhsa71m47c3; path=/; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
WWW-Authenticate: Basic realm="ownCloud"
Content-Length: 291
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns";>
  <s:exception>Sabre_DAV_Exception_NotAuthenticated</s:exception>
  <s:message>No basic authentication headers were found</s:message>
  <s:sabredav-version>1.7.6</s:sabredav-version>
</d:error>

        <-------- END HTTP RESPONSE -------->

        <-------- BEGIN HTTP REQUEST -------->
PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1
Host: unhammer.org:443
Authorization: Basic c2thcnJhOmFzeW5raXJpZmlj
Content-Length: 155
Content-Type: text/xml; charset=utf-8
Depth: 0
Brief: t

<?xml version='1.0' encoding='utf-8'?>
<ns0:propfind xmlns:ns0="DAV:">
  <ns0:prop>
    <ns0:current-user-principal />
  </ns0:prop>
</ns0:propfind>

        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 207 Multi-Status
Date: Sat, 29 Jun 2013 06:02:38 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
X-Powered-By: PHP/5.4.16
Strict-Transport-Security: max-age=31536000
Set-Cookie: 517e7ddaa9c31=pblv926l56okl3tap5gvgog2t1; path=/; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: 517e7ddaa9c31=7r4icnbclrfmes9kjhsoiejvu3; path=/; secure; HttpOnly
Vary: Brief,Prefer
DAV: 1, 3, extended-mkcol, 2
Content-Length: 189
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" 
xmlns:s="http://sabredav.org/ns";><d:response><d:href>/owncloud/remote.php/webdav/</d:href></d:response></d:multistatus>

        <-------- END HTTP RESPONSE -------->

        <-------- END HTTP CONNECTION -------->

        <-------- BEGIN HTTP CONNECTION -------->
Server: unhammer.org

        <-------- BEGIN HTTP REQUEST -------->
PROPFIND /owncloud/index.php/carddav/principals/skarra/ HTTP/1.1
Host: unhammer.org:443
Authorization: Basic c2thcnJhOmFzeW5raXJpZmlj
Content-Length: 157
Content-Type: text/xml; charset=utf-8
Depth: 0
Brief: t

<?xml version='1.0' encoding='utf-8'?>
<ns0:propfind xmlns:ns0="DAV:">
  <ns0:prop>
    <ns0:principal-collection-set />
  </ns0:prop>
</ns0:propfind>

        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 302 Found
Date: Sat, 29 Jun 2013 06:02:40 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
X-Powered-By: PHP/5.4.16
Strict-Transport-Security: max-age=31536000
Set-Cookie: 517e7ddaa9c31=p7ev1k6s1bq4drbjmhqo1p3r81; path=/; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
location: https://unhammer.org:443/owncloud/remote.php/webdav/
Content-Length: 0
Content-Type: text/html; charset=utf-8

 
        <-------- END HTTP RESPONSE -------->

        <-------- END HTTP CONNECTION -------->

        <-------- HTTP REDIRECT -------->
Location: https://unhammer.org:443/owncloud/remote.php/webdav/

        <-------- BEGIN HTTP CONNECTION -------->
Server: unhammer.org

        <-------- BEGIN HTTP REQUEST -------->
PROPFIND /owncloud/remote.php/webdav/ HTTP/1.1
Host: unhammer.org:443
Authorization: Basic c2thcnJhOmFzeW5raXJpZmlj
Content-Length: 157
Content-Type: text/xml; charset=utf-8
Depth: 0
Brief: t

<?xml version='1.0' encoding='utf-8'?>
<ns0:propfind xmlns:ns0="DAV:">
  <ns0:prop>
    <ns0:principal-collection-set />
  </ns0:prop>
</ns0:propfind>

        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 207 Multi-Status
Date: Sat, 29 Jun 2013 06:02:41 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
X-Powered-By: PHP/5.4.16
Strict-Transport-Security: max-age=31536000
Set-Cookie: 517e7ddaa9c31=80aonbtrbgctr31ejvto7nu353; path=/; secure; HttpOnly
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Set-Cookie: 517e7ddaa9c31=ndqmas18chvc7ca15nhuj603d1; path=/; secure; HttpOnly
Vary: Brief,Prefer
DAV: 1, 3, extended-mkcol, 2
Content-Length: 189
Content-Type: application/xml; charset=utf-8

<?xml version="1.0" encoding="utf-8"?>
<d:multistatus xmlns:d="DAV:" 
xmlns:s="http://sabredav.org/ns";><d:response><d:href>/owncloud/remote.php/webdav/</d:href></d:response></d:multistatus>

        <-------- END HTTP RESPONSE -------->

        <-------- END HTTP CONNECTION -------->
/ > ls

        <-------- BEGIN HTTP CONNECTION -------->
Server: unhammer.org

        <-------- BEGIN HTTP REQUEST -------->
PROPFIND / HTTP/1.1
Host: unhammer.org:443
Authorization: Basic c2thcnJhOmFzeW5raXJpZmlj
Content-Length: 145
Content-Type: text/xml; charset=utf-8
Depth: 1
Brief: t

<?xml version='1.0' encoding='utf-8'?>
<ns0:propfind xmlns:ns0="DAV:">
  <ns0:prop>
    <ns0:resourcetype />
  </ns0:prop>
</ns0:propfind>

        <-------- BEGIN HTTP RESPONSE -------->
HTTP/1.1 405 Method Not Allowed
Date: Sat, 29 Jun 2013 06:03:50 GMT
Server: Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16
Vary: accept-language,accept-charset
Accept-Ranges: bytes
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Content-Language: en

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml"; lang="en" xml:lang="en">
<head>
<title>Method not allowed!</title>
<link rev="made" href="mailto:unham...@fsfe.org"; />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/ 
    body { color: #000000; background-color: #FFFFFF; }
    a:link { color: #0000CC; }
    p, address {margin-left: 3em;}
    span {font-size: smaller;}
/*]]>*/--></style>
</head>

<body>
<h1>Method not allowed!</h1>
<p>


    The PROPFIND
    method is not allowed for the requested URL.
    
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:unham...@fsfe.org";>webmaster</a>.

</p>

<h2>Error 405</h2>
<address>
  <a href="/">unhammer.org</a><br />
  
  <span>Sat Jun 29 08:03:50 2013<br />
  Apache/2.2.24 (Unix) mod_ssl/2.2.24 OpenSSL/1.0.1e DAV/2 PHP/5.4.16</span>
</address>
</body>
</html>


        <-------- END HTTP RESPONSE -------->

        <-------- END HTTP CONNECTION -------->
Ignoring error: 405
_______________________________________________
calendarserver-dev mailing list
calendarserver-dev@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/calendarserver-dev

Reply via email to