Adam Keys wrote:
> On Mar 30, 2006, at 8:55 PM, Joe wrote:
>> Thanks. Anybody know how the headers are specified? I can't find any
>> documentation that spells it out. Is it...
>>
>> headers = {
>>   'Referer' => 'http://xyz.com',
>>   'User-Agent' => 'mozillia'
>> }
>>
> 
> I believe this is the standard form.

Hi,
I am also facing the same kind of problem. I tried with the solution 
given in this thread, but couldn't succeeded.
When I try this:

response = NET::HTTP.request_post(url,post_args, headers)

I get the error:

undefined method `request_post' for Net::HTTP:Class

and when I try:

response = http.request_post(url,post_args, headers)

the error was:

undefined local variable or method `http' for Yahoo:Class

Please help me

Thanks



-- 
Posted via http://www.ruby-forum.com/.