i was looking into this myself the other day for a robotics project.
look online for a robot named "grasp." there are detailed tips on how to implement serial protocols through perl-based CGI. here is a link.
http://zodiak.f2o.org/teleoperation/...final_html.htm