set basic auth method on curl