Andrew Cowan
4/15/2008 6:23:00 PM
Thanks Shawn, I wish it did help. I need a way to set custom request
headers, from what I can tell Mechanize doesn't have a public method for
doing that, so I may likely have to revert to net/http instead. Was
hoping I was wrong and was just missing something... ;)
Thanks,
Andy
Shawn Anderson wrote:
> 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 <icculus@gmdstudios.com>
> 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
>>
>>
>>
>
>