From: Doug Jolley Date: 2010-06-20T11:40:23+09:00 Subject: Re: Socket Problems 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/.