I *FINALLY* got this issue resolved!  Brian, you were definitely on the 
right track with your suggestion that the 'read' method was the problem. 
However, the fix was to use the 'recv' method rather than the 'gets' 
method.  With that fix in place everything works perfectly just like the 
test PHP code.  Thanks to all who contributed.

        ... doug
-- 
Posted via http://www.ruby-forum.com/.