I am using curl in windows and trying to get a token from the sandbox. I run the following in my Windows 11 command window:
curl -d '' -X POST '
https://sandbox.bcda.cms.gov/auth/token' --user 3841c594-a8c0-41e5-98cc-38bb45360d3c:efef20edc106b7b355ff09754d5b19014f42820996629a469aa3d4ce1063cbd098b08ccba3bbdcbf -H "accept: application/json"
I get the following error message:
curl: (3) URL rejected: Port number was not a decimal number between 0 and 65535
I am using the following version of curl:
curl 8.4.0 (Windows) libcurl/8.4.0 Schannel WinIDN
Release-Date: 2023-10-11
Protocols: dict file ftp ftps http https imap imaps pop3 pop3s smtp smtps telnet tftp
Features: AsynchDNS HSTS HTTPS-proxy IDN IPv6 Kerberos Largefile NTLM SPNEGO SSL SSPI threadsafe Unicode UnixSockets
Also, I have been trying to run the following:
I get the following error:
curl: (28) Failed to connect to
api.bcda.cms.gov port 443 after 42169 ms: Couldn't connect to server
I am new to curl and to this api.
Cheers,
Russ