Skip to content

Instantly share code, notes, and snippets.

@JaekelEDV
Created February 10, 2020 22:03
Show Gist options
  • Save JaekelEDV/0bc8e560ab7a1cd609be7e387f42580c to your computer and use it in GitHub Desktop.
Save JaekelEDV/0bc8e560ab7a1cd609be7e387f42580c to your computer and use it in GitHub Desktop.
RFC->txt-download-powershell
function Get-RFC {
[CmdletBinding()]
param (
[Parameter(Mandatory = $True)]
[string] $RFC
)
$url = "https://www.ietf.org/rfc/rfc$RFC.txt"
$output = "c:\temp\rfc$RFC.txt"
(New-Object System.Net.WebClient).DownloadFile($url, $output)
Invoke-Item -Path $output
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment