Basic authentication with ofLoadURL

I’m trying to call a URL that I’d with this style in curl/browser:

https://username:password@website.com/api/v1/call

but I get an error with Unauthorized and a 401 back from the server, so the credentials don’t appear to be passed. How can I use authentication with ofLoadURL and ofLoadURLAsync?