Moving POST request to ruby.