Special

Clearance Sale!

We've been publishing for over five years now and it's time to clear out our inventory of back issues, so we're slashing prices!

RBD Magazines

Check out this amazing clearance sale of all our past issues. Missing some issues? This is a great time to complete your RBD collection. Save up to 40% off the regular price of our printed back issue packages. These prices are only good until the end of the year May 2008 and supplies are limited, so place your order today.

Article Preview


Buy Now

Print:
PDF:

Review

acgi dispatcher

Issue: 2.5 (May/June 2004)
Author: Toby Rush
Article Description: No description available.
Article Length (in bytes): 3,357
Starting Page Number: 9
RBD Number: 2505
Resource File(s): None
Related Web Link(s):

http://www.sentman.com/acgi

Known Limitations: None

Full text of article...

REALbasic's capability to send and receive Apple Events has always made it an ideal tool for creating CGI programs -- programs that run alongside a web server and act on data submitted via a web page form -- on Macintosh-based web servers.

Virtually every web server designed for Mac OS 9 always subscribed to the standard method of dealing with incoming form data: send the form data in an Apple Event to the program specified in the >FORM< tag of the web page. The CGI program is generally expected to reply with a web page to be displayed; this is done simply by sending the HTML code as a reply to the Apple Event.

Of course, all this changed with Mac OS X. Few will argue that Apache, the robust and powerful web server that ships with every copy of Mac OS X, is a huge improvement over the OS 9 web server programs. Since Apache was designed for UNIX systems, however, it does not subscribe to the standard method of sending CGI information via Apple Events.

James Sentman solved this problem by releasing acgi dispatcher. acgi dispatcher works alongside Apache to translate incoming CGI data into Apple Events and then sending the events according to the standard Mac OS 9 model. In most cases, this means that CGI programs written for Mac OS 9 can simply be recompiled for Mac OS X and immediately put into use!

acgi dispatcher is fairly easy to install; the program itself resides in the "CGI-Executables" directory in your Web Server folder. Adding the program to your Startup Items folder makes it available each time your computer starts up.

acgi dispatcher also comes with several demonstration CGI programs, the most impressive of which is a way to control iTunes remotely through a web interface. The program also adds some nice features to the traditional Mac CGI model, including pre-decoded URLs and form elements already separated into AppleScript lists.

The only real drawback to acgi dispatcher is one that all similar OS X utilities are faced with: setting things up so that the utility runs even when no one is logged in. With acgi dispatcher doing this is possible, but it's not 100% reliable, and it's probably a better idea to make sure the station is always logged in.

For those who are faced with the need to use Mac OS 9 CGI programs on an OS X server though, acgi dispatcher isn't just the best choice, it's the only choice, and it does the job quite well.

IN BRIEF
 
Product
acgi dispatcher 2.0
 
Manufacturer
James Sentman
 
Price
$15 Individual, $35 Commercial
 
Contact Info
http://www.sentman.com/acgi
 
Pros
Provides Apple Event CGI functionality on Mac OS X. Easy to install and use.
 
Cons
Web server station must remain logged-in.
 
Rating (1.0-5.0):
4.5

End of article.

Article copyrighted by REALbasic Developer magazine. All rights reserved.


 


|

 


Weblog Commenting and Trackback by HaloScan.com