From 58fd3ab724ae2ed53f126cb571c6668e202f5ddf Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 30 Apr 2024 15:14:39 -0700 Subject: [PATCH] Simplify PowerShell examples Invoke-RestMethod automatically formats the response based on data type --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ac0c778..08548f7 100644 --- a/README.md +++ b/README.md @@ -199,8 +199,8 @@ true In PowerShell: ```powershell -PS> (Invoke-WebRequest https://x.y.workers.dev?hunter2).Content -true +PS> irm https://x.y.workers.dev?hunter2 +True ``` ## ip @@ -220,7 +220,7 @@ $ curl https://x.y.workers.dev In PowerShell: ```powershell -PS> (Invoke-WebRequest https://x.y.workers.dev).Content +PS> irm https://x.y.workers.dev ``` @@ -238,7 +238,7 @@ $ curl https://x.y.workers.dev In PowerShell: ```powershell -PS> (Invoke-WebRequest https://x.y.workers.dev).Content +PS> irm https://x.y.workers.dev ``` @@ -263,11 +263,11 @@ In PowerShell: ```powershell # SHA-256 hash of the string "Hello, world!" -PS> (Invoke-WebRequest "https://x.y.workers.dev?algorithm=SHA-256&query=Hello%2C%20world%21").Content +PS> irm "https://x.y.workers.dev?algorithm=SHA-256&query=Hello%2C%20world%21" 315F5BDB76D078C43B8AC0064E4A0164612B1FCE77C869345BFC94C75894EDD3 # MD5 hash of the literal byte array [00, AA, BB, CC] -PS> (Invoke-WebRequest "https://x.y.workers.dev?algorithm=MD5&hex=00AABBCC").Content +PS> irm "https://x.y.workers.dev?algorithm=MD5&hex=00AABBCC" CD7409B51FDE80807E2E1532B7432A00 ``` -- 2.47.3