# File lib/puppet/reports/http.rb, line 14 14: def process 15: url = URI.parse(Puppet[:reporturl]) 16: req = Net::HTTP::Post.new(url.path) 17: req.body = self.to_yaml 18: req.content_type = "application/x-yaml" 19: Net::HTTP.new(url.host, url.port).start {|http| 20: http.request(req) 21: } 22: end