On 9/21/07, Asit Katiyar <asitkatiyar / yahoo.com> wrote:
> 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

You're mixing class and instance methods. Either use HTTP.post_form()
or create an instance of HTTP with HTTP.new or HTTP.start and then use
http.post or http.post_request.

Jano