I have been trying to send an authentication request via curl to an external server but it always returns bad requests. I have tried sending the request directly to the URL