Displaying 1 result from an estimated 1 matches for "chrismcmahonsblog".
2006 Dec 09
1
manipulate headers?
Hi...
Here''s a working Perl script that I want to be able to do in Ruby:
use WWW::Mechanize;
my $url = "http://host/tt?name=chris";
my $mech = WWW::Mechanize->new();
$mech->add_header( Referer => "http://chrismcmahonsblog.blogspot.com" );
$mech->add_header( Cookie => "messageid=170118; memberid=1007");
$mech->get($url)
so the header values for Referer and Cookie are passed with the HTTP GET.
There seems to be an add_field method in mechanize.rb:
request.add_field(''Referer''...