Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Send a Web Request

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles