The Net::HTTP class has a post_form method. However, if I create an
instance of that class (e.g., my_instance=Net::HTTP.new(‘url’,port), I
can’t seem to access the post_form method of the instance. (I would
expect that I would be able to access ‘my_instance.post_form’). Can
anyone please tell me what I am missing? Thanks for any input.
The Net::HTTP class has a post_form method. However, if I create an
instance of that class (e.g., my_instance=Net::HTTP.new(‘url’,port), I
can’t seem to access the post_form method of the instance. (I would
expect that I would be able to access ‘my_instance.post_form’). Can
anyone please tell me what I am missing? Thanks for any input.
Which means that post_form is not an instance method of Net::HTTP but a
class method. However, there is an instace method Net::HTTP#post, which
may
be what you’re looking for.
Regards,
Michael G.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.