I'm trying to  communicate with a Restful api using url.el. When it comes to authentication, their documentation simply says to call curl with "-u user:password".

What is the url equivalent of that option in curl? That is, how do I replicate the following command with url-retrieve-synchronously?
    curl -u user:password https://gnu.org