How to use PowerShell Invoke-WebRequest in C #

PowerShell 3.0 offers a very decent new Invoke-WebRequest cmdlet. Is there a way to use its functionality using C #, respectively .NET, without calling the cmdlet directly? Is it even on .NET?

Regards, Kevin

+4
source share
1 answer

You can use System.Net.HttpWebRequest to do the same. you have a code article about this.

+2
source

Source: https://habr.com/ru/post/1435392/


All Articles