CURL command is not working in MAC OS 14.5

CURL command with headers stopped working on the latest mac version. command used to work fine in earlier versions of the Mac OS.

Below command returns error - unkown Header

curl --request GET ‘URL’ --Header ‘Accept-Language:en’ --Header ‘Content-Type: application/json’

Note: If --Header is given in lower case '--header' is seems to be working in the latest version.

Does anyone face this issue and any fix would be really appreciated.

I’m confused. The curl man page lists --header has an option but makes no mention of --Header. Is there some specific backstory related to --Header?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Hi, I used --Header because didn't think it can cause issue related to case sensitivity, and it was working fine before sonoma 14.5 update. Same command still working in linux. So I'm not sure why it stopped working now in mac. Is there any change in how curl options interpreted in the new update on terminal?

Is there any change in how curl options interpreted in the new update on terminal?

Well, clearly. However, the path forward here is clear: Use the options as they’re documented in the man page.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

CURL command is not working in MAC OS 14.5
 
 
Q