How to get the contents of a web page?

Rajnilari2015
Posted by Rajnilari2015 under PowerShell category on | Points: 40 | Views : 404
Suppose we want the HTML content of "http://www.dotnetfunda.com/".
The below code will help to do so -

Invoke-RestMethod -Uri http://www.dotnetfunda.com/ -Method Get


The Invoke-RestMethod cmdlet sends HTTP and HTTPS requests to Representational State Transfer (REST) web services. The GET Method is use to make the READ Http request .

Comments or Responses

Posted by: Snaini on: 10/12/2015 Level:Starter | Status: [Member] | Points: 10
To Check Web Services we can use Rest Client add on for mozilla.

Login to post response