In reply to Michael Schmidt.

I'm unclear which part is working for you currently, but to be clear: the --user argument (-u) takes both the username and password combined, but PROC HTTP does not have the same functionality. The username and password for basic authenticated urls must be passed with two arguments (webusername and webpassword).
Please clarify if you need more details and thanks for reading!