Dear All:
I am trying to deal with the HTTP response. I want to retrieve the
contents such as header, post, response, HTML, JSON, etc. of the HTTP
response.
(Please refer screen shot for the same.)
Please tell me how to retrieve these contents?
Thanks,
Amit.
Attachments:
http://www.ruby-forum.com/attachment/6245/http_responce.JPG
···
--
Posted via http://www.ruby-forum.com/ .
7stud
(7stud --)
27 May 2011 20:38
2
Amit Bobade wrote in post #1001502:
Dear All:
I am trying to deal with the HTTP response. I want to retrieve the
contents such as header,
resp.each_header do |name, value|
puts "#{name} => #{value}"
end
post,
What is a response 'post'?
response
The response is the response.
HTML, JSON, etc. of the HTTP
response.
puts resp.body
(Please refer screen shot for the same.)
I don't think so.
···
--
Posted via http://www.ruby-forum.com/\ .