Sha256: 84182009d0e69b9f5ea762e66ccd677ed1246fdb3401e29146955be39aa2b551
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
require 'tap/mechanize/request' module Tap module Mechanize # :startdoc::task 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tap-mechanize-0.6.0 | lib/tap/mechanize/submit.rb |