bitfrickler
bitfrickler

Reputation: 1223

How to use PowerShell's Invoke-WebRequest in C#

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

Regards, Kevin

Upvotes: 8

Views: 10157

Answers (1)

JPBlanc
JPBlanc

Reputation: 72630

You can use System.Net.HttpWebRequest to do the same thing. you've got a codeproject article about that.

Upvotes: 5

Related Questions