Change to use net http and completed some test for sample calls