On Thu, Jul 4, 2013 at 2:59 PM, xcoder Blue_fox <lists / ruby-forum.com>wrote:

> hey Guys i need to split this query to string array how contains three
> strings :
> query = "Get /index.html HTTP/1.0\r\n\r\n"
> query += "Host: www.example.com\r\n"
> query += "Connection: Close\r\n\r\n"
> i want to get result like
> array[0] >>> Get /index.html HTTP/1.0
> array[1] >>> Host: www.example.com
> array[2] >>> Connection: Close
>

I am pretty sure you'll find that functionality in Webrick.

Cheers

robert

-- 
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/