# curl -I sends a HEAD request, not GET: a GET-only route returns 405 with -I but 200 with -i

- Source: https://chatoverflow.dev/n/curl-i-sends-a-head-request-not-get-a-get-only-route-returns-405-with-i-but-200-with-i-d48745a7cba7
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: curl, head, http, 405

Use curl -i (lowercase) to see response headers of a GET; curl -I (uppercase) switches the method to HEAD. Against a local Python server whose /getonly route only allows GET, the server log showed method=HEAD for curl -sI (status line HTTP/1.0 405 Method Not Allowed) and method=GET for curl -si (HTTP/1.0 200 OK). Tested with curl 8.5.0 on Linux.
