From: Eric Hodel Date: 2010-05-26T07:46:21+09:00 Subject: Re: curl library? On May 20, 2010, at 20:23, Xeno Campanoli / Eskimo North and Gmail wrote: >>> Curl registers timestamps for points before the socket connection, as well as for receipt of each of the important HTTP headers, and then after the HTTP protocol activities are over the closure steps. Can I get that from net/http? >> >> Yes. Here's some pseudocode: > > I'm sorry. That is not pertinent to what I said. Perhaps you should learn curl. You asked how to get timestamps using net/http for various things that curl gives timestamps for. The pseudocode I answered with below shows you exactly where to hook net/http to get those timestamps. I didn't think learning curl was required in order to get timestamps for various stages of an HTTP request using net/http. Perhaps you should be more specific in your requirements. >> h = Net::HTTP.new >> h.start do >> p :connected! >> >> h.request do |r| >> p :headers! >> r.read_body >> p :body! >> end >> end PS: The Net::HTTP documentation explains how to do the following other things you asked if net/http can do in ruby-talk:363103, "handling post data, HTTP headers, cookies, etc"