I Configured the monero rpc with the command with the following command lines:
1/ Firstly I run the monero daemon : ./monerod --testnet --rpc-bind-ip=x.x.x.x --rpc-bind-port=28081 --rpc- login user:password --confirm-external-bind
2/Then I configured the monero rpc : ./monero-wallet-rpc --wallet-file testwallet --password test --rpc-bind- port 28082 --rpc-bind-ip=x.x.x.x --daemon-address x.x.x.x.x:28081 - -testnet --daemon-login user:password --log-level 4 --confirm-external-bind
and the connection is done successfully but when I used it with the CURL he posted a message "Unauthorized Access".