Table of Contents - mechanize-2.7.3 Documentation
Pages
CHANGELOG
Mechanize CHANGELOG
2.7.3
2.7.2
2.7.1
2.7.0
2.6.0
2.5.2
2.5.1
2.5
2.4
2.3 / 2012-02-20
2.2.1 / 2012-02-13
2.2 / 2012-02-12
2.1.1 / 2012-02-03
2.1 / 2011-12-20
2.0.1 / 2011-06-28
2.0 / 2011-06-27
1.0.0
0.9.3
0.9.2 / 2009/03/05
0.9.1 2009/02/23
0.9.0
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.8
0.7.7
0.7.6
0.7.5
0.7.4
0.7.3
0.7.2
0.7.1
0.7.0
0.6.11
0.6.10
0.6.9
0.6.8
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.4
0.5.3
0.5.2
0.5.1
0.5.0
0.4.7
0.4.6
0.4.5
0.4.4
0.4.3
0.4.2
0.4.1
0.4.0
EXAMPLES
Mechanize examples
Google
Rubyforge
File Upload
Pluggable Parsers
Using a proxy
The transact method
Client Certificate Authentication (Mutual Auth)
GUIDE
Getting Started With Mechanize
Let's Fetch a Page!
Finding Links
Filling Out Forms
Advanced Form Techniques
Scraping Data
LICENSE
Manifest
README
Mechanize
Description
Dependencies
Support:
Examples
Developers
Authors
Acknowledgments
License
Classes/Modules
HTTP
HTTP
HTTP
HTTP::Agent
Top Section
Headers
History
Hooks
Request
Response
Robots
SSL
Timeouts
Utility
HTTP::AuthChallenge
HTTP::AuthRealm
HTTP::AuthStore
HTTP::ContentDispositionParser
HTTP::CookieJar
HTTP::WWWAuthenticateParser
Mechanize
Example
Issues with mechanize
Problems connecting to SSL sites
Problems with content-length
Top Section
History
Hooks
Requests
SSL
Settings
Utilities
Mechanize::ChunkedTerminationError
Mechanize::ContentTypeError
Mechanize::Cookie
Mechanize::CookieCMethods
Mechanize::CookieDeprecated
Mechanize::CookieIMethods
Mechanize::CookieJar
Mechanize::CookieJarIMethods
Mechanize::DirectorySaver
Mechanize::Download
Mechanize::ElementMatcher
Mechanize::ElementNotFoundError
Mechanize::Error
Mechanize::File
Example
Mechanize::FileConnection
Mechanize::FileRequest
Mechanize::FileResponse
Mechanize::FileSaver
Example
Mechanize::Form
Examples
Mechanize::Form::Button
Mechanize::Form::CheckBox
Mechanize::Form::Field
Mechanize::Form::FileUpload
Mechanize::Form::Hidden
Mechanize::Form::ImageButton
Mechanize::Form::Keygen
Mechanize::Form::MultiSelectList
Mechanize::Form::Option
Mechanize::Form::RadioButton
Mechanize::Form::Reset
Mechanize::Form::SelectList
Mechanize::Form::Submit
Mechanize::Form::Text
Mechanize::Form::Textarea
Mechanize::Headers
Mechanize::History
Mechanize::Image
Mechanize::Nokogiri
Mechanize::Page
Mechanize::Page::Base
Mechanize::Page::Frame
Mechanize::Page::Image
Mechanize::Page::Label
Mechanize::Page::Link
Mechanize::Page::MetaRefresh
Mechanize::Parser
Mechanize::PluggableParser
Example
Mechanize::Prependable
Mechanize::RedirectLimitReachedError
Mechanize::RedirectNotGetOrHeadError
Mechanize::ResponseCodeError
Mechanize::ResponseReadError
Mechanize::RobotsDisallowedError
Mechanize::TestCase
Mechanize::UnauthorizedError
Mechanize::UnsupportedSchemeError
Mechanize::Util
Mechanize::XmlFile
Mechanize::node
Net
Net::HTTP
Net::HTTPRequest
Response
Methods
::build_query_string — Mechanize::Util
::charset — Mechanize::Page
::charset_from_content_type — Mechanize::Page
::decode_filename? — Mechanize::DirectorySaver
::detect_charset — Mechanize::Util
::directory — Mechanize::DirectorySaver
::encode_to — Mechanize::Util
::from_native_charset — Mechanize::Util
::from_node — Mechanize::Page::MetaRefresh
::html_unescape — Mechanize::Util
::meta_charset — Mechanize::Page
::meta_content_type — Mechanize::Page
::new — Mechanize::ResponseReadError
::new — Mechanize::Download
::new — Mechanize::DirectorySaver
::new — HTTP::ContentDispositionParser
::new — Mechanize::Page
::new — Mechanize::XmlFile
::new — HTTP::Agent
::new — Mechanize::ContentTypeError
::new — Mechanize::RedirectLimitReachedError
::new — Mechanize::RedirectNotGetOrHeadError
::new — Mechanize::History
::new — Mechanize::Page::Link
::new — Mechanize::ResponseCodeError
::new — Mechanize::FileResponse
::new — HTTP::WWWAuthenticateParser
::new — Mechanize::RobotsDisallowedError
::new — Mechanize::FileRequest
::new — Mechanize::FileSaver
::new — Mechanize::Form::SelectList
::new — Mechanize::Form
::new — Mechanize::Form::RadioButton
::new — Mechanize
::new — Mechanize::Page::Image
::new — Mechanize::Form::Option
::new — Mechanize::Page::Frame
::new — Mechanize::Form::MultiSelectList
::new — Mechanize::Form::Keygen
::new — Mechanize::Form::ImageButton
::new — Mechanize::Form::FileUpload
::new — Mechanize::PluggableParser
::new — Mechanize::Form::Field
::new — Mechanize::UnauthorizedError
::new — HTTP::AuthStore
::new — Mechanize::Page::MetaRefresh
::new — Mechanize::UnsupportedSchemeError
::new — HTTP::AuthRealm
::new — Mechanize::ElementNotFoundError
::new — Mechanize::File
::new — Mechanize::Page::Label
::new — Mechanize::FileConnection
::parse — HTTP::ContentDispositionParser
::parse — Mechanize::Page::MetaRefresh
::response_header_charset — Mechanize::Page
::save_to — Mechanize::DirectorySaver
::start — Mechanize
::uri_escape — Mechanize::Util
::uri_unescape — Mechanize::Util
#/ — Mechanize::Page
#<< — Mechanize::History
#<=> — Mechanize::Form::Field
#== — HTTP::AuthRealm
#[] — Mechanize::Parser
#[] — Mechanize::FileResponse
#[] — Mechanize::Form
#[] — Mechanize::PluggableParser
#[] — HTTP::AuthChallenge
#[] — Mechanize::Form::RadioButton
#[] — Mechanize::Headers
#[]= — Mechanize::PluggableParser
#[]= — Mechanize::Form
#[]= — Mechanize::Headers
#[]= — Mechanize::FileRequest
#[]= — Mechanize::Parser
#__deprecated__ — Mechanize::CookieDeprecated
#add — Mechanize::CookieJarIMethods
#add! — Mechanize::CookieJarIMethods
#add_auth — HTTP::Agent
#add_auth — HTTP::AuthStore
#add_auth — Mechanize
#add_button_to_query — Mechanize::Form
#add_default_auth — HTTP::AuthStore
#add_field — Mechanize::FileRequest
#add_field! — Mechanize::Form
#add_to_history — Mechanize
#alt — Mechanize::Page::Image
#at — Mechanize::Page
#at — Mechanize::XmlFile
#auth — Mechanize
#auth_param — HTTP::WWWAuthenticateParser
#auth_scheme — HTTP::WWWAuthenticateParser
#auto_io — HTTP::Agent
#back — Mechanize
#back — HTTP::Agent
#base_with — Mechanize::Page
#bases — Mechanize::Page
#bases_with — Mechanize::Page
#basic_auth — Mechanize
#body — Mechanize::Download
#build_query — Mechanize::Form
#button_with!(criteria) — Mechanize::Form
#button_with(criteria) — Mechanize::Form
#buttons_with(criteria) — Mechanize::Form
#ca_file — Mechanize
#ca_file — HTTP::Agent
#ca_file= — Mechanize
#ca_file= — HTTP::Agent
#canonical_each — Mechanize::Headers
#canonical_uri — Mechanize::Page
#caption — Mechanize::Page::Image
#cert — Mechanize
#cert= — Mechanize
#cert_store — Mechanize
#cert_store — HTTP::Agent
#cert_store= — Mechanize
#cert_store= — HTTP::Agent
#certificate — HTTP::Agent
#certificate= — HTTP::Agent
#check — Mechanize::Form::RadioButton
#checkbox_with(criteria) — Mechanize::Form
#checkboxes_with(criteria) — Mechanize::Form
#clear — Mechanize::History
#clear! — Mechanize::CookieJarIMethods
#click — Mechanize
#click — Mechanize::Page::Link
#click — Mechanize::Form::RadioButton
#click — Mechanize::Form::Option
#click_button — Mechanize::Form
#code — Mechanize::FileResponse
#conditional_requests — Mechanize
#conditional_requests= — Mechanize
#connection_for — HTTP::Agent
#content — Mechanize::Page::Frame
#content_encoding_gunzip — HTTP::Agent
#content_encoding_hooks — Mechanize
#content_encoding_inflate — HTTP::Agent
#content_length — Mechanize::FileResponse
#content_type — Mechanize::Page
#cookie_jar — Mechanize::TestCase
#cookie_jar — Mechanize
#cookie_jar= — Mechanize
#cookies — Mechanize
#credentials? — HTTP::AuthStore
#credentials_for — HTTP::AuthStore
#csv= — Mechanize::PluggableParser
#current_page — Mechanize
#current_page — HTTP::Agent
#delete — Mechanize
#delete_field! — Mechanize::Form
#detected_encoding — Mechanize::Page
#dir_body — Mechanize::FileResponse
#directory? — Mechanize::FileResponse
#disable_keep_alive — HTTP::Agent
#dom_class — Mechanize::Form::Field
#dom_class — Mechanize::Form
#dom_class — Mechanize::Page::Image
#dom_class — Mechanize::Page::Link
#dom_id — Mechanize::Page::Link
#dom_id — Mechanize::Form::Field
#dom_id — Mechanize::Form
#dom_id — Mechanize::Page::Image
#download — Mechanize
#dump_cookiestxt — Mechanize::CookieJarIMethods
#each — Mechanize::FileResponse
#each — Mechanize::Parser
#each_header — Mechanize::FileRequest
#each_header — Mechanize::FileResponse
#elements_with — Mechanize::ElementMatcher
#enable_gzip — HTTP::Agent
#encoding — Mechanize::Page
#encoding= — Mechanize::Page
#encoding_error? — Mechanize::Page
#eql? — HTTP::AuthRealm
#extname — Mechanize::Page::Image
#extract_filename — Mechanize::Parser
#fake_page — Mechanize::TestCase
#fetch — HTTP::Agent
#fetch — Mechanize::Page::Image
#field_with!(criteria) — Mechanize::Form
#field_with(criteria) — Mechanize::Form
#fields_with(criteria) — Mechanize::Form
#file_to_multipart — Mechanize::Form
#file_upload_with(criteria) — Mechanize::Form
#file_uploads_with(criteria) — Mechanize::Form
#fill_header — Mechanize::Parser
#find_free_name — Mechanize::Parser
#follow_meta_refresh — Mechanize
#follow_meta_refresh= — Mechanize
#follow_meta_refresh_self — Mechanize
#follow_meta_refresh_self= — Mechanize
#follow_redirect= — Mechanize
#follow_redirect? — Mechanize
#for — Mechanize::Page::Label
#force_parse — Mechanize::ResponseReadError
#form_with — Mechanize::Page
#forms — Mechanize::Page
#forms_with — Mechanize::Page
#frame_with — Mechanize::Page
#frames — Mechanize::Page
#frames_with — Mechanize::Page
#from_native_charset — Mechanize::Form
#generate_key — Mechanize::Form::Keygen
#get — Mechanize
#get_fields — Mechanize::FileResponse
#get_file — Mechanize
#get_meta_refresh — HTTP::Agent
#gzip_enabled — Mechanize
#gzip_enabled= — Mechanize
#has_field? — Mechanize::Form
#has_key? — Mechanize::Form
#has_value? — Mechanize::Form
#have_encoding? — Mechanize::TestCase
#head — Mechanize
#height — Mechanize::Page::Image
#hidden_field? — Mechanize::Form
#hiddens — Mechanize::Form
#history — Mechanize
#hook_content_encoding — HTTP::Agent
#html= — Mechanize::PluggableParser
#html_body — Mechanize::Page
#html_page — Mechanize::TestCase
#http_request — HTTP::Agent
#http_version — Mechanize::FileResponse
#idle_timeout — Mechanize
#idle_timeout — HTTP::Agent
#idle_timeout= — Mechanize
#idle_timeout= — HTTP::Agent
#iframe_with — Mechanize::Page
#iframes — Mechanize::Page
#iframes_with — Mechanize::Page
#ignore_bad_chunking — Mechanize
#ignore_bad_chunking= — Mechanize
#image_urls — Mechanize::Page
#image_with — Mechanize::Page
#images — Mechanize::Page
#images_with — Mechanize::Page
#in_tmpdir — Mechanize::TestCase
#inflate — HTTP::Agent
#initialize — HTTP::AuthChallenge
#initialize_copy — Mechanize::History
#inspect — Mechanize::RedirectNotGetOrHeadError
#inspect — Mechanize::ResponseCodeError
#inspect — Mechanize::RobotsDisallowedError
#jar — Mechanize::CookieJarIMethods
#keep_alive — Mechanize
#keep_alive= — Mechanize
#key — Mechanize
#key= — Mechanize
#key? — Mechanize::Parser
#key? — Mechanize::Headers
#keygens — Mechanize::Form
#keys — Mechanize::Form
#label — Mechanize::Form::RadioButton
#labels — Mechanize::Page
#labels_hash — Mechanize::Page
#link_with — Mechanize::Page
#links — Mechanize::Page
#links_with — Mechanize::Page
#load — Mechanize::CookieJar
#load_cookiestxt — Mechanize::CookieJarIMethods
#log — Mechanize
#log — HTTP::Agent
#log= — Mechanize
#make_tempfile — HTTP::Agent
#max_file_buffer — Mechanize
#max_file_buffer= — Mechanize
#max_history — HTTP::Agent
#max_history — Mechanize
#max_history= — HTTP::Agent
#max_history= — Mechanize
#message — Mechanize::FileResponse
#meta_charset — Mechanize::Page
#meta_refresh — Mechanize::Page
#method_missing — Mechanize::Form
#mime_type — Mechanize::Page::Image
#mime_value_quote — Mechanize::Form
#node — Mechanize::TestCase
#noreferrer? — Mechanize::Page::Link
#noreferrer? — Mechanize::Page::MetaRefresh
#open_timeout — Mechanize
#open_timeout= — Mechanize
#option_with — Mechanize::Form::MultiSelectList
#options_with — Mechanize::Form::MultiSelectList
#page — Mechanize::TestCase
#page — Mechanize
#param_to_multipart — Mechanize::Form
#parse — Mechanize::Form
#parse — HTTP::ContentDispositionParser
#parse — HTTP::WWWAuthenticateParser
#parse — Mechanize
#parse — Mechanize::CookieCMethods
#parse_parameters — HTTP::ContentDispositionParser
#parser — Mechanize::PluggableParser
#parser — Mechanize::Page
#pass — Mechanize
#pass= — Mechanize
#path — Mechanize::FileRequest
#pdf= — Mechanize::PluggableParser
#pop — Mechanize::History
#post — Mechanize
#post_connect — HTTP::Agent
#post_connect_hooks — Mechanize
#post_form — Mechanize
#pre_connect — HTTP::Agent
#pre_connect_hooks — Mechanize
#prepend — Mechanize::Prependable
#private_key — HTTP::Agent
#private_key= — HTTP::Agent
#proc_query — Mechanize::Form
#proxy_uri — HTTP::Agent
#push — Mechanize::History
#put — Mechanize
#query_value — Mechanize::Form::ImageButton
#query_value — Mechanize::Form::SelectList
#query_value — Mechanize::Form::MultiSelectList
#query_value — Mechanize::Form::CheckBox
#query_value — Mechanize::Form::Field
#quoted_string — HTTP::WWWAuthenticateParser
#radiobutton_with(criteria) — Mechanize::Form
#radiobuttons_with(criteria) — Mechanize::Form
#rand_string — Mechanize::Form
#read_body — Mechanize::FileResponse
#read_timeout — Mechanize
#read_timeout= — Mechanize
#realm — HTTP::AuthChallenge
#realm_name — HTTP::AuthChallenge
#redirect_ok — Mechanize
#redirect_ok= — Mechanize
#redirection_limit — Mechanize
#redirection_limit= — Mechanize
#rel — Mechanize::Page::Link
#rel? — Mechanize::Page::Link
#remove_auth — HTTP::AuthStore
#remove_from_index — Mechanize::History
#request — Mechanize::FileConnection
#request_add_headers — HTTP::Agent
#request_auth — HTTP::Agent
#request_auth_digest — HTTP::Agent
#request_cookies — HTTP::Agent
#request_data — Mechanize::Form
#request_headers — Mechanize
#request_headers= — Mechanize
#request_host — HTTP::Agent
#request_language_charset — HTTP::Agent
#request_log — HTTP::Agent
#request_referer — HTTP::Agent
#request_user_agent — HTTP::Agent
#request_with_entity — Mechanize
#requests — Mechanize::TestCase
#reset — Mechanize
#reset — HTTP::Agent
#reset — Mechanize::Page
#reset_button? — Mechanize::Form
#resets — Mechanize::Form
#resolve — HTTP::Agent
#resolve_parameters — HTTP::Agent
#response_authenticate — HTTP::Agent
#response_body_permitted? — Mechanize::FileRequest
#response_content_encoding — HTTP::Agent
#response_cookies — HTTP::Agent
#response_follow_meta_refresh — HTTP::Agent
#response_header_charset — Mechanize::Page
#response_log — HTTP::Agent
#response_parse — HTTP::Agent
#response_read — HTTP::Agent
#response_redirect — HTTP::Agent
#retry_change_requests — HTTP::Agent
#retry_change_requests — Mechanize
#retry_change_requests= — Mechanize
#retry_change_requests= — HTTP::Agent
#rfc_2045_quoted_string — HTTP::ContentDispositionParser
#rfc_2045_token — HTTP::ContentDispositionParser
#rfc_2045_value — HTTP::ContentDispositionParser
#robots — Mechanize
#robots= — Mechanize
#robots= — HTTP::Agent
#robots_allowed? — HTTP::Agent
#robots_disallowed? — HTTP::Agent
#robots_error — HTTP::Agent
#robots_error! — HTTP::Agent
#robots_reset — HTTP::Agent
#root — Mechanize::Page
#save — Mechanize::CookieJar
#save — Mechanize::Download
#save — Mechanize::File
#save! — Mechanize::File
#save! — Mechanize::Download
#save_as — Mechanize::File
#save_as — Mechanize::Download
#save_as — Mechanize::CookieJarIMethods
#save_cookies — HTTP::Agent
#save_hash_field_order — Mechanize::Form
#scan_comma_spaces — HTTP::WWWAuthenticateParser
#scheme_handlers — Mechanize
#scheme_handlers= — Mechanize
#search — Mechanize::Page
#search — Mechanize::XmlFile
#select — Mechanize::Form::Option
#select_all — Mechanize::Form::MultiSelectList
#select_none — Mechanize::Form::MultiSelectList
#selected_options — Mechanize::Form::MultiSelectList
#set_domain — Mechanize::CookieIMethods
#set_fields — Mechanize::Form
#set_proxy — Mechanize
#set_proxy — HTTP::Agent
#setup — Mechanize::TestCase
#shift — Mechanize::History
#shutdown — Mechanize
#shutdown — HTTP::Agent
#spaces — HTTP::ContentDispositionParser
#spaces — HTTP::WWWAuthenticateParser
#src — Mechanize::Page::Image
#ssl_certificate — Mechanize::TestCase
#ssl_private_key — Mechanize::TestCase
#ssl_version — Mechanize
#ssl_version — HTTP::Agent
#ssl_version= — Mechanize
#ssl_version= — HTTP::Agent
#submit — Mechanize::Form
#submit — Mechanize
#submit_button? — Mechanize::Form
#submits — Mechanize::Form
#tempfile — Mechanize::TestCase
#text — Mechanize::Form::RadioButton
#text — Mechanize::Page::Image
#text — Mechanize::Page::Link
#text_field? — Mechanize::Form
#textarea_field? — Mechanize::Form
#textareas — Mechanize::Form
#texts — Mechanize::Form
#tick — Mechanize::Form::Option
#title — Mechanize::Page::Image
#title — Mechanize::Page
#to_s — Mechanize::Page::Image
#to_s — Mechanize::ResponseCodeError
#to_s — Mechanize::RobotsDisallowedError
#to_s — Mechanize::UnauthorizedError
#to_s — Mechanize::Page::Link
#to_s — Mechanize::RedirectNotGetOrHeadError
#token — HTTP::WWWAuthenticateParser
#transact — Mechanize
#uncheck — Mechanize::Form::RadioButton
#uncheck_peers — Mechanize::Form::RadioButton
#unselect — Mechanize::Form::Option
#unselect_peers — Mechanize::Form::Option
#untick — Mechanize::Form::Option
#uri — Mechanize::FileResponse
#uri — Mechanize::Page::Link
#uri — Mechanize::RobotsDisallowedError
#url — Mechanize::Page::Image
#use_tempfile? — HTTP::Agent
#user_agent — Mechanize
#user_agent= — HTTP::Agent
#user_agent= — Mechanize
#user_agent_alias= — Mechanize
#value — Mechanize::Form::MultiSelectList
#value — Mechanize::Form::SelectList
#value= — Mechanize::Form::SelectList
#value= — Mechanize::Form::MultiSelectList
#values — Mechanize::Form
#verify_callback — HTTP::Agent
#verify_callback — Mechanize
#verify_callback= — HTTP::Agent
#verify_callback= — Mechanize
#verify_mode — Mechanize
#verify_mode — HTTP::Agent
#verify_mode= — Mechanize
#verify_mode= — HTTP::Agent
#visited? — Mechanize::History
#visited? — Mechanize
#visited_page — Mechanize::History
#visited_page — Mechanize
#visited_page — HTTP::Agent
#webrobots — HTTP::Agent
#width — Mechanize::Page::Image
#xhtml= — Mechanize::PluggableParser
#xml= — Mechanize::PluggableParser