[CalendarServer-users] CURL-request to Calendarserver via HTTPS

Andre LaBranche dre at apple.com
Tue Jul 3 12:25:45 PDT 2012


On Jul 3, 2012, at 12:08 PM, emport wrote:

> 
> hi,
> 
> thank you for your quick reply.
> unfortunately, i am not allowed to modify the server configuration. :(

In that case, use some other tool to send the request, such as wget or CalDAVClientLibrary (with the 'props' command)

{24} andre at rune [trunk/CalDAVClientLibrary] % ./runshell.py --server=https://caldav.foo.com:8443 --user=dre
Password: 
Found principal path: /principals/__uids__/letters and numbers which are obfuscated/calendar-proxy-write/
/ > help
acl           - Manage the access privileges of a directory or file.
addressbooks  - Change working directory to address book home for current or specified principal.
calendars     - Change working directory to calendar home for current or specified principal.
cat           - Display contents of a file or directory.
cd            - Change working directory.
exit          - Terminates this session.
help          - Displays help about a command.
history       - Displays the history of all commands used in this session.
import        - Import data to a collection on the server.
logging       - Changes the current state of HTTP logging.
ls            - List the contents of a directory.
mkadbk        - Creates an address book collection.
mkcal         - Creates a calendar collection.
mkdir         - Creates a regular collection.
more          - Display contents of a file or directory.
move          - Moves a resource.
mv            - Moves a resource.
principal     - Get details on principals.
props         - List the properties of a directory or file.
proxies       - Displays the delegates for the chosen user.
put           - Write data to a file on the server.
quit          - Terminates this session.
quota         - Checks quota on the specified PATH.
rm            - Deletes one or more resources.
server        - Displays the current server.
sync          - Sync the contents of a directory.
user          - Allows changing the current server login id and password.
whoami        - Displays the current server login id.
write         - Write data to a file on the server.
/ > cd /calendars/users/me
/calendars/users/me > props
OK Properties:
    {DAV:}acl: <Element '{DAV:}acl' at 0x107125990>
    {DAV:}acl-restrictions: 
    {DAV:}creationdate: 2012-01-03T23:12:41Z
    {DAV:}current-user-principal: URL: /principals/__uids__/yep still obfuscated/
    {DAV:}current-user-privilege-set: <Element '{DAV:}current-user-privilege-set' at 0x1071299d0>
    {DAV:}displayname: Andre LaBranche
    {DAV:}getcontentlength: 
    {DAV:}getcontenttype: httpd/unix-directory
    {DAV:}getetag: "b92f660dadcfb940f9520e3c82a72b35"
    {DAV:}getlastmodified: Sat, 16 Jun 2012 19:55:50 GMT
    {DAV:}inherited-acl-set: 
    {DAV:}owner: URL: /principals/__uids__/heyo/
    {DAV:}principal-collection-set: URL: /principals/
    {DAV:}quota-available-bytes: 52324030
    {DAV:}quota-used-bytes: 104770
    {DAV:}resourcetype: <Element '{DAV:}resourcetype' at 0x10712e0d0>
    {DAV:}supported-privilege-set: <Element '{DAV:}supported-privilege-set' at 0x1071a1090>
    {DAV:}supported-report-set: <Element '{DAV:}supported-report-set' at 0x10719bb50>
    {DAV:}supportedlock: <Element '{DAV:}supportedlock' at 0x1071a1310>
    {DAV:}sync-token: data:,1_198272
    {http://calendarserver.org/ns/}max-collections: 50
    {http://calendarserver.org/ns/}push-transports: <Element '{http://calendarserver.org/ns/}push-transports' at 0x10712e490>
    {http://calendarserver.org/ns/}pushkey: /CalDAV/caldav.foo.com/B6D75AB6-63D9-433F-850D-A2FC447FF23C/
    {http://twistedmatrix.com/xml_namespace/dav/}resource-class: DirectoryCalendarHomeResource
    {urn:ietf:params:xml:ns:caldav}default-alarm-vevent-date: 
    {urn:ietf:params:xml:ns:caldav}default-alarm-vevent-datetime: 
    {urn:ietf:params:xml:ns:caldav}supported-calendar-component-sets: <Element '{urn:ietf:params:xml:ns:caldav}supported-calendar-component-sets' at 0x10712e210>

HTH,
-dre

> 
> kinds regards,
> emport
> 
> 
> Andre LaBranche-2 wrote:
>> 
>> Hi,
>> 
>> This looks like the 'curl hates kerberos' bug. Disable Kerberos auth on
>> your server and retry. Curl does not honor the specified auth mech, even
>> if you tell it specifically not to use kerberos.
>> 
>> -dre
>> 
>> _______________________________________________
>> calendarserver-users mailing list
>> calendarserver-users at lists.macosforge.org
>> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users
>> 
>> 
> 
> -- 
> View this message in context: http://old.nabble.com/CURL-request-to-Calendarserver-via-HTTPS-tp34109386p34109458.html
> Sent from the Calendar Server - Users mailing list archive at Nabble.com.
> 
> _______________________________________________
> calendarserver-users mailing list
> calendarserver-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/calendarserver-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-users/attachments/20120703/3d12b066/attachment.html>


More information about the calendarserver-users mailing list