Impleneted a pure Net::HTTP version but its not working :(