Sure, it’s possible. You should indeed use .NET classes such as HttpWebRequest through .NET Interop. Consult .NET documentation / forums to understand how to use the classes.
Note that it’s often easier (and sometimes necessary) to wrap .NET code in a custom class library, rather than calling standard classes directly from X++.