replaced wininet sdk with winhttp sdk
go back to wininet instead of winhttp; removed exceptions
code refactor, unique_ptr fix