Curl command in AEM doesn't work in higher environments with Basic Auth
I'm trying to execute curl command to upload a package in higher environments in AEMaaCS by passing Basic Auth.
List of common AEM cURL commands | Adobe Experience Cloud
But it throws an error :
503client read error

I'm passing user credentials as Basic Authentication. No issue related to permissions.
Note: It works when I try in localhost.
Please help!