Martin DeMello wrote:
> On Tue, Mar 17, 2009 at 11:28 AM, Arun Kumar
> <arunkumar / innovaturelabs.com> wrote:
>> Sorry to say David, I tried that but the same error is producing. Is it
>> because i've not set the user agent. Can u please tell me how to set the
>> user_agent for mozilla.
> 
> http://mechanize.rubyforge.org/mechanize/EXAMPLES_rdoc.html has some
> examples setting the user agent. Google around and see what the
> mozilla user agent should be -
> http://www.user-agents.org/index.shtml?moz has an extensive list, for
> instance.
> 
>> Thanks for ur immediate reply
> 
> Don't do that, it's annoying.
> 
> martin

Can i use user-agents in hpricot? or if it can be used only for 
mechanize. I've found a user-agent for mozilla :
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 
1.1.4322; .NET CLR 2.0.50727)
But still it is showing the same error.
-- 
Posted via http://www.ruby-forum.com/.