8

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

1 Answer 1

5

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

Sign up to request clarification or add additional context in comments.

1 Comment

I know HttpWebRequest. However, Invoke-WebRequest returns elements of the requested web page as object (i.e. links, forms, input fields...).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.