From cUrl docs:
-u, --user <user:password;options>
Specify the user name, password and optional login options to use for server authentication. Overrides -n, --netrc and --netrc-optional.
What it gets translated to, meaning how do I catch it on the server to authenticate the user: are they in GET or in POST parameters?
The language is not important, the idea is important.