# Pages and Downloads: \`Invoke-WebRequest\`

Invoke-WebRequest gives you the whole answer from a web address, not only its data, so you can read the status code that says whether a page is there, read the headers that describe it, and save what it sends as a file with -OutFile.

![Cheat sheet for the lesson Pages and Downloads: \`Invoke-WebRequest\`: Invoke-WebRequest gives you the whole answer from a web address, not only its data, so you can read the status code that says whether a page is there, read the headers that describe it, and save what it sends as a file with…](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/751d05e7f9c5491aa5fdfa2b6bbbd024.webp)

- Category: PowerShell
- Level: Journeyman
- Tags: &lt;header>, HTTP, invoke-webrequest, powershell, Status Code
- Updated: November 10, 2026

Source: https://www.ask-codey.com/cheat-sheets/powershell-invoke-webrequest-cheat-sheet
