From ec5e366b47ea0b5a4ee72bc182d4ef697eec51c7 Mon Sep 17 00:00:00 2001 From: FAQ Bot Date: Mon, 5 Oct 2026 17:38:02 +0000 Subject: [PATCH 1/2] NEW: Why does `curl -i http://localhost:8000/...` prompt me to supply a URI o --- ...70976_powershell-curl-uri-prompt-http-i.md | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 _questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md diff --git a/_questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md b/_questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md new file mode 100644 index 00000000..a1d03136 --- /dev/null +++ b/_questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md @@ -0,0 +1,23 @@ +--- +id: 4e02770976 +question: Why does `curl -i http://localhost:8000/...` prompt me to supply a URI on + Windows PowerShell? +sort_order: 3 +--- + +In Windows PowerShell 5.1, `curl` is an alias for PowerShell’s `Invoke-WebRequest`, not the real `curl` executable. As a result, flags like `-i` don’t behave like they do on Linux/macOS. + +Fixes: +- Call the real `curl` explicitly: + +```powershell +curl.exe -i http://localhost:8000/api/orders/standard-1002 +``` + +- Or use PowerShell’s command directly: + +```powershell +Invoke-WebRequest -Uri http://localhost:8000/api/orders/standard-1002 +``` + +Note: On PowerShell 7 and later, `curl` is no longer the `Invoke-WebRequest` alias. \ No newline at end of file From fde44daf13aa4bf8f956c207ff2e2c0a6d4ae6b5 Mon Sep 17 00:00:00 2001 From: Alexey Grigorev Date: Wed, 14 Oct 2026 07:20:46 +0200 Subject: [PATCH 2/2] Move PowerShell curl FAQ to 04-devops-homework as 006 --- ...70976_powershell-curl-uri-prompt-http-i.md | 23 ------------------- ...70976_powershell-curl-uri-prompt-http-i.md | 23 +++++++++++++++++++ 2 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 _questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md create mode 100644 _questions/ai-dev-tools-zoomcamp/04-devops-homework/006_4e02770976_powershell-curl-uri-prompt-http-i.md diff --git a/_questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md b/_questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md deleted file mode 100644 index a1d03136..00000000 --- a/_questions/ai-dev-tools-zoomcamp/02-development/003_4e02770976_powershell-curl-uri-prompt-http-i.md +++ /dev/null @@ -1,23 +0,0 @@ ---- -id: 4e02770976 -question: Why does `curl -i http://localhost:8000/...` prompt me to supply a URI on - Windows PowerShell? -sort_order: 3 ---- - -In Windows PowerShell 5.1, `curl` is an alias for PowerShell’s `Invoke-WebRequest`, not the real `curl` executable. As a result, flags like `-i` don’t behave like they do on Linux/macOS. - -Fixes: -- Call the real `curl` explicitly: - -```powershell -curl.exe -i http://localhost:8000/api/orders/standard-1002 -``` - -- Or use PowerShell’s command directly: - -```powershell -Invoke-WebRequest -Uri http://localhost:8000/api/orders/standard-1002 -``` - -Note: On PowerShell 7 and later, `curl` is no longer the `Invoke-WebRequest` alias. \ No newline at end of file diff --git a/_questions/ai-dev-tools-zoomcamp/04-devops-homework/006_4e02770976_powershell-curl-uri-prompt-http-i.md b/_questions/ai-dev-tools-zoomcamp/04-devops-homework/006_4e02770976_powershell-curl-uri-prompt-http-i.md new file mode 100644 index 00000000..d789135b --- /dev/null +++ b/_questions/ai-dev-tools-zoomcamp/04-devops-homework/006_4e02770976_powershell-curl-uri-prompt-http-i.md @@ -0,0 +1,23 @@ +--- +id: 4e02770976 +question: 'Homework 4: Why does curl -i http://localhost:8000/api/orders/... prompt + me to supply a Uri in Windows PowerShell?' +sort_order: 6 +--- + +In Windows PowerShell 5.1, `curl` is an alias for PowerShell's `Invoke-WebRequest`, not the real `curl` executable. As a result, flags like `-i` don't behave like they do on Linux/macOS. With real curl, `-i` prints the response status line and headers along with the body. + +Fixes: +- Call the real `curl` explicitly: + +```powershell +curl.exe -i http://localhost:8000/api/orders/standard-1002 +``` + +- Or use PowerShell's command directly: + +```powershell +Invoke-WebRequest -Uri http://localhost:8000/api/orders/standard-1002 +``` + +Note: On PowerShell 7 and later, `curl` is no longer the `Invoke-WebRequest` alias.