rails post form issue when using https -
following code, trying post form https site. i've googled many times no luck.
post_params = { name: "peter", age: "26", school: "st. andrew secondary" } uri = uri.parse('https://www.somehttps.com') http = net::http.new(uri, "443") http.use_ssl = true http.post_form(uri, post_params)
but got:
nomethoderror (undefined method `post_form' #<net::http www.somehttps.com:443 open=false>)
why so? please me, thank you.
try - net::http.post_form(uri, post_params)
Comments
Post a Comment