From: Shawn Anderson Date: 2008-04-16T03:13:37+09:00 Subject: Re: Question regarding mechanize lib ------=_Part_702_5610284.1208283216750 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline I'm not sure about generic headers, but I know one can set the basic authentication header by calling basic_auth(user,pw) on their Mechanize object. Hope that helps, /Shawn On Tue, Apr 15, 2008 at 10:38 AM, Andrew Cowan wrote: > I have been scanning the docs for mechanize and cannot find a way to > specify or add to the request headers. Been hoping to find a quick example > so I can set custom headers that are required for authenticating at specific > sites (one example is Youtube's required 'Authorization' header ). I would > greatly appreciate if someone could show me what I am missing. > > Thanks! > Andy > > ------=_Part_702_5610284.1208283216750--