Index: lib/net/http.rb =================================================================== --- lib/net/http.rb (revision 23134) +++ lib/net/http.rb (working copy) @@ -981,6 +981,12 @@ request(Trace.new(path, initheader)) end + # Sends a TRACK request to the +path+ and gets a response, + # as a HTTPResponse object. + def track(path, body=nil, initheader=nil) + request(Track.new(path, initheader), body) + end + # Sends a GET request to the +path+ and gets a response, # as an HTTPResponse object. # @@ -1758,6 +1764,12 @@ RESPONSE_HAS_BODY = true end + class Track < HTTPRequest + METHOD = 'TRACK' + REQUEST_HAS_BODY = true + RESPONSE_HAS_BODY = true + end + # # WebDAV methods --- RFC2518 #