23skiddoo has asked for the wisdom of the Perl Monks concerning the following question:
And here's the output:#!/usr/bin/perl -w use strict; use HTTP::DAV; $\ = "\n"; my $uid = 'foo'; my $pwd = 'bar'; my $url = 'http://my.server.com/api/dav/Calendars/Users/Foo.User@server.com/Cale +ndar'; my $d = new HTTP::DAV; $d->DebugLevel( 3 ); $d->credentials( -user => $uid, -pass => $pwd, -url => $url ); $d->open( -url => $url ) or die "Couldn't open $url: " . $d->message();
It looks like it is changing the login cred to "Scalix User" for some reason. I am fairly new to DAV, and am wondering if the server causing this somehow, or if my code simply bites.Setting auth details for my.server.com:80, default to 'foo', 'bar' new_resource: For http://my.server.com/api/dav/Calendars/Users/Foo.User@server.com/Calen +dar/, creating new resource Resetting user and password for my.server.com:80, Scalix User Using user/pass combo: . For Scalix User, http://my.server.com/api/dav/Calendars/Users/Foo.User@server.com/Calen +dar/ Couldn't open http://my.server.com/api/dav/Calendars/Users/Foo.User@server.com/Calen +dar: Unauthorized. at ./check_Cal.pl line 33.
Thanks,
Mike
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: HTTP::DAV changing auth creds?
by almut (Canon) on Jun 09, 2009 at 14:15 UTC | |
by 23skiddoo (Beadle) on Jun 09, 2009 at 19:13 UTC | |
|
Re: HTTP::DAV changing auth creds?
by 23skiddoo (Beadle) on Jun 10, 2009 at 15:57 UTC | |
by cosimo (Hermit) on Aug 06, 2009 at 18:19 UTC | |
by rajgkn (Initiate) on Jun 23, 2010 at 02:11 UTC | |
by Anonymous Monk on Mar 16, 2014 at 17:02 UTC | |
by Anonymous Monk on Mar 16, 2014 at 20:11 UTC | |
by Anonymous Monk on Aug 06, 2009 at 10:11 UTC | |
by Anonymous Monk on Aug 06, 2009 at 17:48 UTC |