<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Curl on Locodigital</title><link>https://locodigital.com.br/en/tags/curl/</link><description>Recent content in Curl on Locodigital</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Wed, 16 Sep 2026 09:00:00 -0300</lastBuildDate><atom:link href="https://locodigital.com.br/en/tags/curl/index.xml" rel="self" type="application/rss+xml"/><item><title>Invoke-WebRequest: download files and test URLs in PowerShell</title><link>https://locodigital.com.br/en/technology/invoke-webrequest-download-files-test-apis-powershell/</link><pubDate>Wed, 16 Sep 2026 09:00:00 -0300</pubDate><guid>https://locodigital.com.br/en/technology/invoke-webrequest-download-files-test-apis-powershell/</guid><description>&lt;p&gt;The endpoint agent update server stopped responding during a Patch Tuesday. The infra team needed to check whether the address was reachable, download the installer manually, and validate its SHA256 hash — all on a core server with no graphical interface. Three PowerShell cmdlets solved it in under two minutes.&lt;/p&gt;
&lt;h2&gt;What is Invoke-WebRequest?&lt;/h2&gt;
&lt;p&gt;&lt;code&gt;Invoke-WebRequest&lt;/code&gt; is the PowerShell cmdlet that makes HTTP and HTTPS requests — the equivalent of &lt;code&gt;curl&lt;/code&gt; on Linux or &lt;code&gt;wget&lt;/code&gt;. It returns an object with the status code, response headers, cookies and content. It's been available since PowerShell 3.0 on Windows, and in PowerShell 7+ on any platform.&lt;/p&gt;</description></item></channel></rss>