After setting up apache, I could connect to my local WebDAV server using the Finder's Go iDisk menu item. Running Backup and looking at the web server's log showed that it was accessing my own server. But Backup failed, thinking it was trying to access www.mac.com using https. This was no surprise, since it was actually accessing my own web server.
https://www.mac.com/WebObjects/Info.woa/wa/Query/accountInfoThe next thing to do was to setup a cgi script that would catch to information submitted by the POST. The following information was sent:
{ body = {keys = (iToolsBackupActivated, trialAccountDaysLeft); }; function = accountInfo; header = {password = foobar; username = mydotmactrialaccount; }; }To see what the required response was, I used the following command, using the https enabled lynx on OpenBSD:
lynx -mime_header -source -post_data \ https://www.mac.com/WebObjects/Info.woa/wa/Query/accountInfo << EOT { body = {keys = (iToolsBackupActivated, trialAccountDaysLeft); }; function = accountInfo; header = {password = foobar; username = mydotmactrialaccount; }; } EOTThe command produces the following information:
HTTP/1.1 200 Apple Server: Netscape-Enterprise/3.6 SP3 Date: Tue, 17 Sep 2002 19:30:32 GMT Expires: Tue, 17 Sep 2002 19:30:32 GMT X-webobjects-loadaverage: 0 Cache-control: private Cache-control: no-cache Cache-control: no-store Cache-control: must-revalidate Cache-control: max-age=0 Cache-control: post-check=0 Cache-control: pre-check=0 Pragma: no-cache Date: Tue, 17 Sep 2002 19:30:32 GMT Content-length: 103 { payload = {iToolsBackupActivated = N; trialAccountDaysLeft = 13; }; statusCode = success; }When I changed my accountInfo script to return the following information
{ payload = {iToolsBackupActivated = Y; trialAccountDaysLeft = -1; }; statusCode = success; }I was a happy camper!
Copyright © 2002 Otto Moerbeek
Last modified $Date: 2007/03/31 09:56:59 $.