update post.rb with the new restclient POST methodology