Authentication Error when Running a Report via an external URL call via curl yet it works when logged in via the browser

I am trying to call the following url

curl -u manager:Manager123 -i 'http://aijar.mets.or.ug:8080/ugandaemr/ws/rest/v1/concept?limit=2'

which works, yet

curl -L -u manager:Manager123 -i 'http://aijar.mets.or.ug:8080/ugandaemr/module/reporting/reports/renderReport.form?reportDefinition=96e0926d-1606-4de6-943f-cb036bdc15ad&renderingMode=org.openmrs.module.reporting.report.renderer.CsvReportRenderer!7c8301e3-439e-4084-a9f1-dad1a2b6e3c3'

throws an API Exception in the link below

https://gist.github.com/ssmusoke/15dbaab8d7673ebed171971f14e15b2e

Any advice for what the root cause is and how to resolve it

Are you sure you are not getting a? HTTP/1.1 404 Not Found