title: Rails Net::HTTP.post_form API returns 500 Internal Error although it returns correct response through PostMan
body: <p>I am trying to get the API Token from this api.
  <a href="https://docs.bigmarker.com/#login" rel="nofollow noreferrer">https://docs.bigmarker.com/#login</a></p>
  <p>Basically below is the API format and it works with PostMan as well</p>
  <p>curl -i -X POST --data &quot;email=youremail@email.com&amp;password=yourpassword&quot; <a href="https://www.bigmarker.com/api/v1/members/login" rel="nofollow noreferrer">https://www.bigmarker.com/api/v1/members/login</a></p>
  <p>I didn't specify any Headers, Just use the POST form data with email &amp; password.</p>
  <p>And this is my rails code.</p>
  <p>require 'net/http'
  require 'net/https'</p>
  <blockquote>
  <p>uri = URI(&quot;https://www.bigmarker.com/api/v1/members/login&quot;)</p>
  </blockquote>
  <blockquote>
  <p>res = Net::HTTP.post_form(uri, {'email' =&gt; email, 'passowrd' =&gt; password})</p>
  </blockquote>
  <p>But it returns  HTTP 500 Error.
  #&lt;Net::HTTPInternalServerError 500 Internal Server Error readbody=true&gt;</p>
  <p>Any idea?
  Thanks</p>
  <p><a href="https://i.stack.imgur.com/n2uyc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/n2uyc.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/L08lA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L08lA.png" alt="enter image description here" /></a></p>