Sha256: 14fa458dd03f43e6b0830ac6b940fdf1bca87b235bb28f1ac6db82074b932d61
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
require 'tap/mechanize/request' module Tap module Mechanize # :startdoc::manifest submits a captured http request # # Performs a series of HTTP requests and returns the content of the final # page. Requests must be hashes that at least specify the uri of the next # request, but more typically also specify the request method, parameters, # and even headers. # # All requests are peformed in the same session, so logins and subsequent # actions are allowed. The easiest way to capture HTTP requests is to # use the capture server distributed with tap-mechanize. Simply start a # tap server and work through the tutorial (http://localhost:8080/capture/tutorial). # # % tap server # # Once you have a request file: # # % tap run -- load/yaml --:s submit --: dump < request.yml # # Remember, only the results of the final page are returned! class Submit < Request def process(*requests) super(requests).content end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tap-mechanize-0.5.0 | lib/tap/mechanize/submit.rb |
tap-mechanize-0.5.1 | lib/tap/mechanize/submit.rb |