Update docs for most recent Windows version

In more recent Windows 11 versions (not sure about Windows 10),
Windows now ships its own `curl.exe`,
so PowerShell's "curl"-alias no longer exists.

Changes made in this commit will replace the `curl` alias call with the actual `Invoke-WebRequest` function.

Signed-off-by: Manuel Thalmann <m@nuth.ch>
This commit is contained in:
Manuel Thalmann
2025-09-13 17:25:43 +02:00
committed by Jesse Taube
parent 53ef23df38
commit 2e84246ad5

View File

@@ -144,11 +144,12 @@ A curl command against localhost on the PowerShell prompt will return a
successful HTTP response: successful HTTP response:
``` ```
PS C:\Users\User> curl http://localhost:8080/ -UseBasicParsing PS C:\Users\User> Invoke-WebRequest -UseBasicParsing http://localhost:8080/
StatusCode : 200 StatusCode : 200
StatusDescription : OK StatusDescription : OK
Content : <html><body><h1>It works!</h1></body></html> Content : <html><body><h1>It works!</h1></body></html>
[...]
``` ```
As with Linux, to stop, run: As with Linux, to stop, run: