Displaying 2 results from an estimated 2 matches for "abs_uri".
Did you mean:
abs_err
2008 Jan 16
3
settings headers in mechanize
hi,
a potential mechanize user here. i''ve looked at the API but it''s not
clear what capacity there is to arbitrarily set the headers - does
mechanize allow for this?
mechanize is clearly great for web browsing, but i also need to
construct get and post requests from scratch. i''ve looked at
net:http, libcurl, openuri, but mechanize seems simpler and more
functional than
2008 Mar 11
8
Mechanize#get vs Mechanize#fetch_page
...h for
arguments like this:
WWW::Mechanize.new(''http://api.flickr.com/services/rest/'', {:method =>
''flickr.auth.getFrob''... })
Granted, it looks like this isn''t supported but it led me to what
looks like a bug. Namely that get calls fetch_page(abs_uri, request,
cur_page, &block) [mechanize.rb:167]. But the method signature for
fetch_page [mechanize.rb:441] is def fetch_page(uri, request,
cur_page=current_page(), request_data=[]).
What was the intention for the &block on Mechanize#get? I can''t find
any examples of it g...