README in tap-http-0.3.2 vs README in tap-http-0.4.0
- old
+ new
@@ -2,43 +2,43 @@
A task library for submitting http requests using {Tap}[http://tap.rubyforge.org].
== Description
-TapHttp provides modules to construct and submit HTTP requests from a hash
-that specifies the target url, headers, parameters, etc. TapHttp is
-designed to work with a {Ubiquity}[http://labs.mozilla.com/2008/08/introducing-ubiquity/]
-command called {redirect-http}[http://gist.github.com/25932]; together
-they allow the capture and resubmission of web forms.
+TapHttp provides modules to capture and resubmit HTTP requests. TapHttp is
+designed to work with a
+{Ubiquity}[http://labs.mozilla.com/2008/08/introducing-ubiquity/] command
+called redirect-http; together they allow the capture and resubmission of web
+forms.
* Lighthouse[http://bahuvrihi.lighthouseapp.com/projects/9908-tap-task-application/tickets]
* Github[http://github.com/bahuvrihi/tap-http/tree/master]
* {Google Group}[http://groups.google.com/group/ruby-on-tap]
=== Usage
-TapHttp submits http requests using the Tap::Http::Request module. Headers,
-parameters, and other configurations may be specified, but only a request
-method and uri are required.
+TapHttp submits HTTP requests using
+Mechanize[http://mechanize.rubyforge.org/mechanize/], via the
+Tap::Http::Submit task. Headers and parameters may be specified, but only a
+uri is required.
- include Tap::Http
-
- res = Request.get('http://www.google.com/search')
- res.body[0,80] # => "<!doctype html><head><title>tap-http - Google Search</title><style>body{backgrou"
+ Tap::Http::Submit.new.process(:uri => 'http://www.google.com')[0, 80]
+ # => "<html><head><meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859"
=== Submitting Web Forms
-Http requests from web forms may be captured and resubmitted using a combination
-of tools. To do so start a tap server from the command line (of course tap-http
-must be installed):
+HTTP requests from web forms may be captured and resubmitted using a
+combination of tools. To learn how, install tap-http and start a tap server
+from the command line:
% tap server
-Now open a browser and work through the {tutorial}[http://localhost:8080/capture].
+Now open a browser and work through the {tutorial}[http://localhost:8080/capture/tutorial].
== Installation
-TapHttp is available as a gem on RubyForge[http://rubyforge.org/projects/tap]. Use:
+TapHttp is available as a gem on RubyForge[http://rubyforge.org/projects/tap].
+Use:
% gem install tap-http
== Info