PowerTip: Use PowerShell to Send a Web Request

PowerTip: Use PowerShell to Send a Web Request

  • Comments 1
  • Likes

Summary: Use the Invoke-WebRequest Windows PowerShell cmdlet to easily send a web request.

 

Hey, Scripting Guy! Question How can you easily send an HTTP or HTTPS request to a web service by using Windows PowerShell 3.0?

Hey, Scripting Guy! Answer Use the Invoke-WebRequest cmdlet. For example, the following code returns links from the Hey, Scripting Guy! Blog.

(Invoke-WebRequest scriptingguys.com/blog).links

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment
  • Invoke-WebRequest is AWESOME!