At the end I did it with a WinHttpRequest object that I already know how to handle and it worked.

Thanks a lot!