Switched to use ruby Net::Http librari intead of external one