I am trying to programmatically publish an html form on the Internet. I managed to create a request with parameters in the request body, but I canβt figure out how to pass the Http header attributes using the Net :: Http library, Any ideas if this is possible? ... Any other library that does this for me?
res = Net::HTTP.post_form(URI.parse('http://test.com/add_comment'), {'static'=>'1', 'entry_id'=>'23942',})
source share