S
Scara Maccai
Hi,
how can I read a response from an http server line by line?
req = Net::HTTP.new('10.2.1.2')
res = req.post('/mycgi', mydata) do |str|
print str
end
How can I read a line instead of a "chunck" of data in str?
Something like "BufferedReader.readLine()" in Java...
how can I read a response from an http server line by line?
req = Net::HTTP.new('10.2.1.2')
res = req.post('/mycgi', mydata) do |str|
print str
end
How can I read a line instead of a "chunck" of data in str?
Something like "BufferedReader.readLine()" in Java...